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 1u7dHU-002rAF-Oz for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 16:49:05 +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 1u7dHS-0088j9-B2 for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 16:49:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u7dHR-0088j1-Uo for pgsql-hackers@lists.postgresql.org; Wed, 23 Apr 2025 16:49:02 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u7dHO-001d9M-2a for pgsql-hackers@lists.postgresql.org; Wed, 23 Apr 2025 16:49:02 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-601a99977faso5877eaf.1 for ; Wed, 23 Apr 2025 09:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upgrade.com; s=google; t=1745426937; x=1746031737; darn=lists.postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=3wtknM1LvUq0EqERVpjqbA9BZg2RZStMtxTY92imZTE=; b=mN9FAWYysY9GrdBsgctupQ/FP7UwS5INXtgDzBG2t3YaJFB6ZgJkog+NCwfXKZ8yKC YCPojGS7NbZG93GsN1Sa3RNh82PMuSbcobNOL1/9uneUYcE8zIvvEV5b2whVMxMHiTER Kln7e/+fGQVI0ZsG9O33EJ40qRu96y3o+GP+JTUDrRrNGAjn5ZvmviMuAP3RPRXwOqY+ 5m1yQ94TZ/W3rhpROx3eaUCwycwUbcizCvuMEesDZ9OMpfp0e/B5ExjSpdzyyvkLwpeC dmxv/2hSyzB4d2SintWrfbNkqemsatTSvg+GK+vrzZkDPvl9I8YLlN2JTaIUKf0OQmx5 YRAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745426937; x=1746031737; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3wtknM1LvUq0EqERVpjqbA9BZg2RZStMtxTY92imZTE=; b=AmikOFM34nx54odiIfeCwltXR7s6g1ep3vMTQLiovov+9qqVU5hlKS3Xj5F6bSIpTs WpgmpVYtn1iZJ5vtAjr+VOY9HNA7J2W5ewS1rmL+jlRozgaVqHWG90I+h07aYn6qFBFb b2NRhl5F8wYqBdGUDT1EfoHwoJ9Wk4VHNdT4BwDflBepf0hFV0Gkc9frk4IeZg7OaRM0 sDznirmIL6+07gluU31UmoVJFzXAAkKex957/uxeBHS6UwGr+0inNj1+R6/7i2UqVNC5 E+mL1L7UAW0qtWd0fZD3FMrOau5TW1EIE8lb8NVfYHIGJkkIFoWgCnHL3NRZTnvmjHxu 7GEw== X-Forwarded-Encrypted: i=1; AJvYcCW/k1YGDgQscQzROTy6ueBVbaYe/QaWHbk/RIG8Eo6nGlLjxuiE4FJbZmbRY0spMTi2LNnAsxHYhaUTB/8L@lists.postgresql.org X-Gm-Message-State: AOJu0YzprwAXNNFELSNW4u0GjJREJuDIP3fV0HU49kay6ZVZo57QpipZ GNzmPAsgl/JKAyQxQHW1VzUMdbrOg2swDna22QiGJzcUuaF6sdFvMkOtL/3lk+I= X-Gm-Gg: ASbGncsRPFoa+qPu/C+mWykVQ/+fKRJJgrJ1a8qteFn4H69hfTNRFkTYaeuc6h+iZpl ut370iMqQs55S44frhFKafIV7MB+E4I+QKRTPyhsTYcw6iyseQXj5rVK0HnlQTQHvHwt5PCfw6D LdDxfzCoqpFhdIJE5/9//Mg+Jfd4F+2doqaDnNaNx2hD74GZWxhkLQbbjxb+vbny+PQAotf+Tyj x3zhy2tJs70GoLu0LO8WXQQFBiHi+gaNxXUSAxg5xGHqu3U5soZhewX+DZI8ezfZmBqfpnPciXu jvgWewRcieUwSiw0aHq2d6ZhxFLpLzVfd0iY5WWyZnuuni8Wh09pGbrNyDeFQqtBUaVHi8uvvjx 4uIfLCqfYLKBEk2iED5LK6/WN X-Google-Smtp-Source: AGHT+IHY3SN6tSznb9P5EQkq/ogeInpyspSvSWWnC4oTguG6RoGCJHkzzE4N0GWj8Ksft+45ZKxBXQ== X-Received: by 2002:a05:6871:3390:b0:29e:37d7:3f56 with SMTP id 586e51a60fabf-2d5f63cf62bmr817297fac.12.1745426937589; Wed, 23 Apr 2025 09:48:57 -0700 (PDT) Received: from smtpclient.apple (216-188-247-105.dyn.grandenetworks.net. [216.188.247.105]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2d521351021sm3261815fac.13.2025.04.23.09.48.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Apr 2025 09:48:57 -0700 (PDT) From: Jim Nasby Message-Id: <0AA66026-3707-4252-B97A-86CC65F1F22E@upgrade.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_DFA44C2C-12DB-4491-89D6-2CEE4048254C" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: Built-in Raft replication Date: Wed, 23 Apr 2025 11:48:46 -0500 In-Reply-To: Cc: Ashutosh Bapat , Andrey Borodin , Tom Lane , Konstantin Osipov , Nikolay Samokhvalov , PostgreSQL Hackers To: Greg Sabino Mullane References: <1798838.1744759182@sss.pgh.pa.us> <20FB597F-641F-48F8-8428-D8DDBA802D58@yandex-team.ru> <212D5973-FDD0-4CF5-BCD0-2760EC319DF3@yandex-team.ru> X-Mailer: Apple Mail (2.3826.400.131.1.6) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_DFA44C2C-12DB-4491-89D6-2CEE4048254C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Apr 16, 2025, at 2:29=E2=80=AFPM, Greg Sabino Mullane = wrote: >=20 > 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. >=20 > 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.=E2=80=9D =E2=80=A6 unless we added multiple WAL streams. That would allow for = splitting WAL traffic across multiple devices as well as providing = better support for configurations that don=E2=80=99t replicate the = entire cluster. The current situation where delayed replication of a = single table mandates retention of all the WAL for the entire cluster is = less than ideal. --Apple-Mail=_DFA44C2C-12DB-4491-89D6-2CEE4048254C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On Apr 16, = 2025, at 2:29=E2=80=AFPM, Greg Sabino Mullane <htamfids@gmail.com> = wrote:

On Wed, Apr 16, 2025 at 2:18=E2=80=AFAM Ashutosh Bapat = <ashutosh.bapat.oss@gmail.com<= /a>> wrote:

=E2= =80=A6 unless we added multiple WAL streams. That would allow for = splitting WAL traffic across multiple devices as well as providing = better support for configurations that don=E2=80=99t replicate the = entire cluster. The current situation where delayed replication of a = single table mandates retention of all the WAL for the entire cluster is = less than ideal.

= --Apple-Mail=_DFA44C2C-12DB-4491-89D6-2CEE4048254C--