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 1ueXoW-00Azri-55 for pgsql-general@arkaria.postgresql.org; Wed, 23 Jul 2025 11:39:12 +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 1ueXoS-001wRE-Q1 for pgsql-general@arkaria.postgresql.org; Wed, 23 Jul 2025 11:39:09 +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 1ueXoS-001wR6-Fn for pgsql-general@lists.postgresql.org; Wed, 23 Jul 2025 11:39:08 +0000 Received: from mail1.dalibo.net ([51.159.93.128] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ueXoP-000PYy-0l for pgsql-general@lists.postgresql.org; Wed, 23 Jul 2025 11:39:08 +0000 Received: from karst (82-65-23-130.subs.proxad.net [82.65.23.130]) by mail.dalibo.com (Postfix) with ESMTPSA id 1ADBB27EFA; Wed, 23 Jul 2025 13:39:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1753270744; bh=OmLS7INqY+vWKR409Z3qkA/N++VzJ/6C6UspEwQ0YHA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nvGXKtQnXgai2hP6kGd1VAMcRsa1IL4gnXbO8ft/f57CGiYqkg2oQaOcC39LLDeDB mGSEvIAyPfIs8iq7eG2VqMW1neXHKBsCtmFeGVqHCmCSYlqwYUzl0O+B5yhb79n/Rn K3Y4sunL14b4TPLKfvehIDcP8PXTu/jAldO7HCBE= Date: Wed, 23 Jul 2025 13:39:03 +0200 From: Jehan-Guillaume de Rorthais To: Achilleas Mantzios Cc: vijay patil , pgsql-general@lists.postgresql.org Subject: Re: Request for Feedback on PostgreSQL HA + Load Balancing Architecture Message-ID: <20250723133903.55c00274@karst> In-Reply-To: <93148226-72d5-4f5d-8c59-5ffedde7fe6b@cloud.gatewaynet.com> References: <93148226-72d5-4f5d-8c59-5ffedde7fe6b@cloud.gatewaynet.com> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 23 Jul 2025 12:13:26 +0100 Achilleas Mantzios wrote: =E2=80=A6 > Have you consider pgpool-ii ?=C2=A0 I know most support / service compani= es=20 > push for patroni, and manually separating read / write traffic from=20 > within the app, Indeed > but I still find pgpool's query routing very nice. Using Pgpool for HA is a no go in my opinion. Pgpool HA requires the DBA/sysadmin to deal alone with the real high availability challenges. Pgpo= ol doesn't handle the HA complexity itself, it stays quite "naive". It require= s the sysadmin/DBA to mess with the complexity to keep the cluster safe from corruption. In other word, implement the HA safety stack in bash yourself. = This is partly true for repmgr as well last time I checked. Don't implement Patroni or Pacemaker yourself in a collection of "action scripts" triggered by a naive HA stack. Some people tried, some clusters has been corrupted. Pgpool for routing and/or pooling is an acceptable solution. Of course, it = comes with its drawbacks and some inefficiences, that's why most support/service companies avoid it when possible. But depending on the context, it could be= OK. Regards,