Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u58SA-00CnE3-Rn for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 19:29:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u58S8-003seB-Q2 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 19:29:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u58S8-003se2-7s for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 19:29:45 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u58S6-000Q8b-2h for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 19:29:44 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-3d8092656a9so3509445ab.0 for ; Wed, 16 Apr 2025 12:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744831782; x=1745436582; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0DJFu6FINLFS6sFXr23kpAKLvfLqKIqdAZJFyobwX8w=; b=Yd0cC9fZAzPKrIYmGi1VduzpoGD5Ew7qMKB2dGDI6LCB30gS44t0LmNs4K8zzadfC6 v/LPanik+zT8O3dldZjMTKzOeL/9UYhfPPs8H24o8wR4UXzMzrXv7/RhHOD0HKmhLUwW h5ImSeUukVWHqAvSzaTsZ7+gCEBxkOXKnKXoO63ejA98NXdE5dTbQtDayX6KFxuv3ksg P2xJ0oRO1n/acp9CFvfDBVlHlo4Ysi9an6fQQD/c0x0aGit6tJT/3BcSGB1EgjMx6Gqt PjH3U0kwq/+7GQT/inxlwnVDuD+UtITxzjlGuOMHXd//TQsEGnHqXnjlG+UzFStB36jv OdAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744831782; x=1745436582; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0DJFu6FINLFS6sFXr23kpAKLvfLqKIqdAZJFyobwX8w=; b=cAR9HelFzBVdxvx3Syx2swJyuu9vqhJE962iiR+VpwOE3Z9jWng0mYfahFxJ+LUUg8 NzwQqfc8X5UvMyswBsHpe9IParH2tf/z88Mc2U+woQjW/e4QjLQQXAQSGrEassl3pl0Y YaB+Eo0h6DZcMdmwVkBCEO5Tl44PvrvjYj5h/PRxfpCbP+fc91g/vu7JzSeni5DRqnQc nLWG5WyjRchk0Gafsdmfivw2H2Ky+KleS8oneSYXJTkt5v1DCkN7HqDCFACWmYW5eTd8 E5Pfdfalq6+WrB2BqKW9Y+3+F1K8MIwcn9scBvA/8zqjLj+8mbtxZveRtRnCU+YDWsSJ k6fA== X-Forwarded-Encrypted: i=1; AJvYcCXp+xW4eaax56J9eCc+YXPYsJBPZTISQMPOx8+UyxasuniQJhIi4SPHQnDMLtRQ+MEs/9cBSKtRRkxP4mbI@lists.postgresql.org X-Gm-Message-State: AOJu0Ywraja0G8mkyAUYzsQ7eVhE8BQ/ncw2fLMzudCbJh1RT8BAB50D /IviF2ncmptVQbWgJ8Fj4KFCEbkm4FJevjiFVpk99WsPUpfQaKnaJT8miLVI7WKy0ud/qp9oXFf wbkZmxZuBpJUSSRoRtEK7aWTrn3M= X-Gm-Gg: ASbGncsB6RPLquZKkiSZsArOp2xMuEdRGpRAOhNFAjDTUc57ZSDfzSKNPdIDLMOXvaU uNWZltb3UOUV06mgQ0+89TAz0xpzR+lpMDUOgc8rT/rMN5+2vBMQ/AZfmdxR1aeIaqaShIU34EQ IAGMyTifgUlFyY9rTiQ9ngs7IERM2Qba0G0u5uVRKw6gHOJPbW8IV6JKkr X-Google-Smtp-Source: AGHT+IGbJDBrik4x4WJPBGWv8AAj39vCqClrgcsCPCZzyOIEB/+zm0WXY7DHnkp1XHSeKwprUqCIpu4WlR9DZFqq9gA= X-Received: by 2002:a05:6e02:1949:b0:3d5:890b:d9e1 with SMTP id e9e14a558f8ab-3d81b661d23mr588965ab.1.1744831781992; Wed, 16 Apr 2025 12:29:41 -0700 (PDT) MIME-Version: 1.0 References: <1798838.1744759182@sss.pgh.pa.us> <20FB597F-641F-48F8-8428-D8DDBA802D58@yandex-team.ru> <212D5973-FDD0-4CF5-BCD0-2760EC319DF3@yandex-team.ru> In-Reply-To: From: Greg Sabino Mullane Date: Wed, 16 Apr 2025 15:29:05 -0400 X-Gm-Features: ATxdqUEfEGbZmxGW4aroZODCMDSCbPBwG-rQZwXhIoEOZ93WTSnC_zePMms2sAY Message-ID: Subject: Re: Built-in Raft replication To: Ashutosh Bapat Cc: Andrey Borodin , Tom Lane , Konstantin Osipov , Nikolay Samokhvalov , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="0000000000008f02f50632ea4e7d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008f02f50632ea4e7d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 16, 2025 at 2:18=E2=80=AFAM Ashutosh Bapat wrote: > Users find it a waste of resources to deploy 3 big PostgreSQL instances > just for HA where 2 suffice even if they deploy 3 lightweight DCS > instances. Having only some of the nodes act as DCS and others purely > PostgreSQL nodes will reduce waste of resources. > A big problem is that putting your DCS into Postgres means your whole system is now super-sensitive to IO/WAL-streaming issues, and a busy database doing database stuff is going to start affecting the DCS stuff. With three lightweight DCS servers, you don't really need to worry about how stressed the database servers are. In that way, I feel etcd et al. are adhering to the unix philosophy of "do one thing, and do it well." Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --0000000000008f02f50632ea4e7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Apr 16, 2025 at 2:18=E2=80=AFAM A= shutosh Bapat <ashutosh.= bapat.oss@gmail.com> wrote:
Users find = it a waste of resources to deploy 3 big PostgreSQL instances just for HA wh= ere 2 suffice even if they deploy 3 lightweight DCS instances. Having only = some of the nodes act as DCS and others purely PostgreSQL nodes will reduce= waste of resources.

A big problem is t= hat putting your DCS into Postgres means your whole system is now super-sen= sitive to IO/WAL-streaming issues, and a busy database doing database=C2=A0= stuff is going to start affecting the DCS stuff.=C2=A0 With three lightweig= ht DCS servers, you don't really need to worry about how stressed the d= atabase servers are. In that way, I feel etcd et al. are adhering to the un= ix philosophy of "do one thing, and do it well."
=
= Cheers,
Greg

--
Enterprise Postgres Software Products & Tech = Support

--0000000000008f02f50632ea4e7d--