[pgpool-general: 6170] Re: Fwd: repeat the check of the trusted servers

Piotr Gbyliczek P.Gbyliczek at node4.co.uk
Thu Jul 26 19:43:03 JST 2018


On Tuesday, 24 July 2018 13:05:07 BST Muhammad Usama wrote:

Hi Muhammad,

> trusted_servers config could be used to mitigate the split-brain syndrome
> in older versions of Pgpool-II but
> if you are on 3.6.7 which has the quorum aware watchdog system you don't
> require to use trusted_servers config
> and leave it empty, of course if you don't have some other specific
> requirements as the one I described in above example.
> 
> Please let me know if you need further clarification or explanation.

Would that work in cluster with 2 pgpool nodes ? I'm guessing not, as "quorum" 
suggests 3+ servers to be effective in my mind. However after your explanation 
it seems to me that pgpool does not behave logically in regards to 
"trusted_servers" and  introduces some risks by this. 

I mean, why would any pgpool process stop itself due to failure to communicate 
the trusted servers when there is communication with peer over the watchdog 
channel ? I understand your hypothetical environment, and indeed, we don't 
want to have application/clients connecting to the database via multiple 
routes due to delegate IP being up on more than one pgpool server after 
network partition. 

But that suggest the communication between nodes is severed, and ping to 
trusted servers helps establish if given pgpool still has access to network, 
in which case it is plausible that it is expected to have VIP on itself. In 
case that it can't ping outside, there is even no point of bringing up the 
VIP, as there is network issue and little expectation of traffic from app/
clients will get to it. 

Thinking of it, does this opens us up for a case where network partition runs 
between pgpool nodes, and outside connectivity is not affected ?  Both nodes 
will bring up VIP then, and potentially make a bit of mess..

Anyway, in case that watchdog is communicating fine with other nodes, but 
trusted servers can't be contacted, watchdog should take priority, and dictate 
that nothing should be done, imho. 

I think that it may be an edge case, and solution for that would be to get 
another pgpool node running. is there a way to make a witness node in pgpool ? 
I'm unable to add third pgpool node due to cost, but could install pgpool to 
another server to make it 3 nodes. However, that server would be unable to 
take production traffic, so should be never able to bring up VIP.

Regards,
Piotr

--

Piotr Gbyliczek
Solutions Engineer

Node4 Ltd, The POD, 10 Bottle Ln, Nottingham NG1 2HL
ddi. 08454 210444 | t. 0845 123 2222
e. P.Gbyliczek at node4.co.uk



Node4 Limited is registered in England No: 04759927 and has its registered office at Millennium Way, Pride Park, Derby, DE24 8HZ
The information contained in this email is confidential and is intended for the exclusive use of the email addressee shown.
If you are not the addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited.
If you have received this mail in error, please notify our mail manager at abuse at node4.co.uk and delete it from your system.
Opinions expressed in this email are those of the individual not the company, unless specifically indicated to that effect.

This email has been scanned inbound by Node4's Email Security System.

This email message has been delivered safely and archived online by Mimecast.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430901741.jpg
Type: image/jpeg
Size: 10120 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430902041.png
Type: image/png
Size: 1315 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430902241.png
Type: image/png
Size: 16076 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430902441.png
Type: image/png
Size: 19451 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430902641.png
Type: image/png
Size: 16233 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430902841.png
Type: image/png
Size: 16168 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430903241.png
Type: image/png
Size: 17391 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 118072611430903441.jpg
Type: image/jpeg
Size: 10763 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20180726/8d807f20/attachment-0003.jpg>


More information about the pgpool-general mailing list