Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijXMf-0005mL-Dp for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2019 23:43:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijXMc-0006Tc-26 for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2019 23:43:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijXMb-0006TV-OA for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2019 23:43:49 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijXMY-0004T9-Te for pgsql-general@postgresql.org; Mon, 23 Dec 2019 23:43:49 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1ijXMW-0005H2-DV; Mon, 23 Dec 2019 18:43:44 -0500 Date: Mon, 23 Dec 2019 18:43:44 -0500 From: Bruce Momjian To: a venkatesh Cc: pgsql-general@postgresql.org Subject: Re: pgpool High Availability Issue Message-ID: <20191223234344.GA24865@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk The pgpool email lists are the right place to ask this question: https://www.pgpool.net/mediawiki/index.php/Mailing_lists --------------------------------------------------------------------------- On Fri, Nov 15, 2019 at 11:04:22AM -0800, a venkatesh wrote: > Hi,  > > I'm working on configuring high availability for pgpool using watchdog. > Initially, I tried with two pgpool nodes (along with a pgmaster and pgslave). > In this scenario, assuming pgpool node 1 was started first and became the > leader. After sometime , the node got disconnected with  pgpool node 2 and > pgpool node 2 as well declared itself as leader.                     > > To handle this kind of scenario, I tried provisioning an additional pgpool node > and made a cluster with total 5 nodes (3 pgpool nodes, 1 pgmaster and 1 > pgslave), assuming it will create a quorum to handle such situations. > Unfortunately, the situation still remains the same. (In case of any > disconnection between node that became leader and the first stand by node, both > the nodes try to manage the pgmaster and slave simultaneously). > > Please help me understand if this is expected behavior or some additional > configurations are required to be made, so that two pgpool nodes don't become > leader simultaneously.  If it's an expected behavior, how can we handle this ?  > > (A point to note is that I'm not using elastic IP address here, instead I have > created a network load balancer in AWS, created a target group with all the > three pgpool nodes as targets).  > > Regards,  > Venkatesh.  -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +