From: Bruce Momjian <bruce@momjian.us>
To: a venkatesh <venkatesh.sasi@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pgpool High Availability Issue
Date: Mon, 23 Dec 2019 18:43:44 -0500
Message-ID: <20191223234344.GA24865@momjian.us> (raw)
In-Reply-To: <CANLYxgw4o7sKrMAWZd1o1ZERaXs_hXK4O5ctc0XTkSsFhWMzcw@mail.gmail.com>
References: <CANLYxgw4o7sKrMAWZd1o1ZERaXs_hXK4O5ctc0XTkSsFhWMzcw@mail.gmail.com>
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 <bruce@momjian.us> 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 +
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bruce@momjian.us, venkatesh.sasi@gmail.com
Subject: Re: pgpool High Availability Issue
In-Reply-To: <20191223234344.GA24865@momjian.us>
References: <CANLYxgw4o7sKrMAWZd1o1ZERaXs_hXK4O5ctc0XTkSsFhWMzcw@mail.gmail.com> <20191223234344.GA24865@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox