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 1iWlxq-00087n-Ak for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2019 18:41:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iWlxn-0005C3-9n for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2019 18:41:27 +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 1iWlxm-0005Bu-Uh for pgsql-admin@lists.postgresql.org; Mon, 18 Nov 2019 18:41:27 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWlxk-0001f2-MY for pgsql-admin@postgresql.org; Mon, 18 Nov 2019 18:41:26 +0000 Received: by mail-oi1-x242.google.com with SMTP id m193so16302679oig.0 for ; Mon, 18 Nov 2019 10:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1YzuLiJUANnbwTs45bm4MLIunGacsIWpY9a9QyL9mRY=; b=gNlYkj+tp3jSKHAnfx+jlcap+Nmi2I2C0AzihSrWFIw5tx/o6Pk5RKznsgpjFH/T5V sl+6UkqfFd8oWVbN78fiI6luPn1cbXTIygB01+hattn2rHw523Ff3QJ0SBYi4cEqHRAg ZN4PB0oTu/IDsr93tcGV6oBljaTcbJth+grqYmkdsighZ3BBhEGB2AsfprjjSE56CBc4 o77HfFI4KutxJQGdg2f6ky2vaIvdLXMGiRQ0Z6puyCgYf2CpH4nVdFKHiIs1B70yigfK wm57acYoF8dMsvhe2KEnekC+l9srXrPrdoYUUTVDQZrm235MhbACFVC1zstosyCWLOp2 cFdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1YzuLiJUANnbwTs45bm4MLIunGacsIWpY9a9QyL9mRY=; b=EUYT73winpaFjS72Na82P5uxKs8JbyolDsEgVqZ2B4qYiz+mS/Nl9iQw40Fo1VHSJA oomzCrb/ACH5HsbQDE+fwvh/fyr2X2i0PfdAziS4z9qf1qZKTeQgDbv/9pYdBtRNnmg5 6gvh4fH6/6jFa8EZdcSjMvdThkyk54nLIPRA1G9FD97kYSxBF0i9kCiI+tK6IUBoxra9 S4HFGf55vXp8m5VH9X+CG01ey4CdQ1kMQW/It6UrZzGR1BmvrPMZTwyhfgm/JiD+JLeQ T4J71PMdP4XXVgkBI0eCkNje1UUVV8R6r6eXtHI3mrjZE7bqSNXhHJHsoZEnXP9pHetZ TJrQ== X-Gm-Message-State: APjAAAWDPAoSjLOhTJmliGU/2pthYNj5t8DFPuPjiv4b04ryPm3t+blT 51hAr3JxrWzq8w38VtFwcrltamPcjGCMvoHhVWEf2SO2 X-Google-Smtp-Source: APXvYqwiTLIPVAUeFgZ0D21OmKGgjxUI1xeEfygcA/wmuyWO/1xkFuen1ulGWyxFVNTKkN5wrwkA4am3EqNhf1jGuwo= X-Received: by 2002:aca:3ac3:: with SMTP id h186mr342242oia.134.1574102482622; Mon, 18 Nov 2019 10:41:22 -0800 (PST) MIME-Version: 1.0 From: a venkatesh Date: Mon, 18 Nov 2019 10:41:12 -0800 Message-ID: Subject: pgpool High Availability Issue To: pgadmin-hackers@lists.postgresql.org, pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="000000000000511c7c0597a34bcd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000511c7c0597a34bcd Content-Type: text/plain; charset="UTF-8" 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, --000000000000511c7c0597a34bcd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0

I'm working on configurin= g high availability for pgpool using watchdog. Initially, I tried with two = pgpool nodes (along with a pgmaster and pgslave). In this scenario, assumin= g pgpool node 1 was started first and became the leader. After sometime , t= he node got disconnected with=C2=A0 pgpool node 2 and pgpool node 2 as well= declared itself as leader.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0=C2=A0

To handle this kind of= scenario, I tried provisioning an additional pgpool node and made a cluste= r with total 5 nodes (3 pgpool nodes, 1 pgmaster and 1 pgslave), assuming i= t will create a quorum to handle such situations. Unfortunately, the situat= ion 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 th= e pgmaster and slave simultaneously).

Please h= elp me understand if this is expected behavior or some additional configura= tions are required to be made, so that two pgpool nodes don't become le= ader simultaneously.=C2=A0 If it's an expected behavior, how can we han= dle this ?=C2=A0

(A point to note is that I'm = not using elastic IP address here, instead I have created a network load ba= lancer in AWS, created a target group with all the three pgpool nodes as ta= rgets).=C2=A0

Regards,=C2=A0
--000000000000511c7c0597a34bcd--