<div dir="ltr"><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Hi <span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Piotr,</span></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">The purpose of trusted_servers is to make sure the Pgpool-II node which gets isolated from</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">network because of some network partitioning remove itself from the Pgpool-II cluster.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Suppose in some hypothetical environment one wants that every Pgpool-II node should remain</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">connected or can access the internet or public network, so that users from other networks can access the service,</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">while at the same time watchdog use the internal private network (delegate-ip would be public IP in this case).</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">So the way to verify the connectivity of Pgpool-II node with external network or internet is to use trusted_servers config.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">for example you can use &#39;<a href="http://pgpool.net">pgpool.net</a>&#39; in trusted server list to ensure that Pgpool-II node is not isolated from</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">internet and able to ping the public website on internet. and as soon as the node fail to ping the <a href="http://pgpool.net">pgpool.net</a> it will</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">declare itself dead even if it can reach the other pgpool nodes on local network.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">trusted_servers config could be used to mitigate the split-brain syndrome in older versions of Pgpool-II but</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">if you are on 3.6.7 which has the quorum aware watchdog system you don&#39;t require to use trusted_servers config</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">and leave it empty, of course if you don&#39;t have some other specific requirements as the one I described in above example.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Please let me know if you need further clarification or explanation.</div><br class="gmail-Apple-interchange-newline"><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 23, 2018 at 7:55 PM Piotr Gbyliczek &lt;<a href="mailto:P.Gbyliczek@node4.co.uk">P.Gbyliczek@node4.co.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, <br>
<br>
Sorry for reviving old thread, but I&#39;ve recently gone up to 3.6.7 and observed <br>
same behavior. <br>
<br>
As I understand it, trusted_servers is a mechanism that should prevent standby <br>
pgpool service to bring up the delegated IP, and cause split brain where there <br>
is a network partition between pgpool servers. </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
But struggling to see why standby that is able to communicate with it&#39;s master <br>
over watchdog channel would declare itself dead upon failing to contact <br>
trusted_servers. <br>
<br>
In fact I&#39;ve had two scenarios : <br>
 - standby pgpool declared itself dead on failing to contact trusted server, <br>
which was discovered when master pgpool was manually stopped and there was no <br>
standby to fall back to.<br>
- master declared itself dead on failing to contact trusted server, which <br>
initiated failover procedure and standby picked up the master role, bringing <br>
up the delegated IP. this is correct behavior in general, but have been <br>
noticed by customers and monitoring, hence some question have been raised. <br>
<br>
I would say both could be avoided, and were unnecessary downtime for the <br>
delegated IP. <br>
<br>
Was there any conclusion to this issue, or design explanation to the behavior <br>
? <br>
<br>
Thanks, <br>
Piotr<br>
-- <br>
    <br>
    <br>

<table width="800" border="0" cellpadding="0" cellspacing="0">
<tbody>
  <tr>
    <td colspan="8" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td colspan="8" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td width="40" rowspan="2" valign="top"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><img border="0" src="cid:118072315553501989@uk-mta-54.uk.mimecast.lan"></td></tr></tbody></table></td>
                <td width="9" rowspan="2"> </td>
                <td width="480" valign="top" cellpadding="0" cellspacing="0">
<span style="font-size:20px;font-weight:bold;font-family:Arial;margin:0;padding:0">Piotr Gbyliczek</span>
                  <hr style="height:0;border-top-style:solid;border-top-color:#e05206;color:#e05206;margin:4px 0px;border-width:1px 0 0">
                  <span style="font-weight:lighter;font-size:14px;font-family:Arial;margin:0;padding:0">Solutions Engineer</span>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
<tr><td height="4" style="font-size:4px" cellpadding="0" cellspacing="0"> </td></tr>                      
<tr>
                        <td width="56%" valign="top">
                          <span style="font-size:11px;font-family:Arial;margin:0;padding:0">
ddi. <strong>08454 210444</strong><br>

t. <strong>0845 123 2222</strong>
<br>e. <strong style="color:#303a3d;text-decoration:none"><a href="mailto:P.Gbyliczek@node4.co.uk" target="_blank">P.Gbyliczek@node4.co.uk</a></strong></span>
</td>
<td width="44%" align="left" valign="top"><span style="font-size:11px;font-family:Arial;margin:0;padding:0"><strong>Nottingham Office</strong><br>Node4 Ltd, The POD,<br>10 Bottle Ln, Nottingham, NG1 2HL</span></td>
                      </tr>
                    </tbody>
                  </table>
                  <p> </p>
</td>
                
                <td colspan="8" align="right" valign="top">
<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://www.node4.co.uk" target="_blank"><img border="0" alt="Visit www.node4.co.uk" src="cid:118072315553502189@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table>
                  <table width="100%" height="46" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                       <tr>
                      <td colspan="8" height="12" style="font-size:4px" cellpadding="0" cellspacing="0"></td>
                      </tr>
                      <tr>
<td> </td>
                        <td align="right"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://www.node4.co.uk" target="_blank"><img border="0" alt="Visit www.node4.co.uk" src="cid:118072315553502489@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table></td>
                        <td> </td>
                        <td align="right"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://www.twitter.co.uk/Node4Ltd" target="_blank"><img border="0" alt="Visit Node4 on Twitter" src="cid:118072315553502289@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table></td>
                        <td> </td>
                        <td align="right"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="https://www.linkedin.com/company/node4-ltd" target="_blank"><img border="0" alt="Visit Node4 on Linkedin" src="cid:118072315553502389@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table></td>
                        <td> </td>
                        <td align="right"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://www.facebook.com/Node4" target="_blank"><img border="0" alt="Visit Node4 on Facebook" src="cid:118072315553502089@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table></td>
                      </tr>
                    </tbody>
                  </table>
                  <p> </p>
</td>
                <td width="10" rowspan="2"> </td>
                <td width="40" rowspan="2" valign="top"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><img border="0" src="cid:118072315553501989@uk-mta-54.uk.mimecast.lan"></td></tr></tbody></table></td>
              </tr>
              
            </tbody>
          </table></td>
</tr>
        </tbody>
    </table>
<table width="800" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
<td>
<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://info.node4.co.uk/cloud-transformation-consultancy-services-0" target="_blank"><img border="0" src="cid:118072315553502589@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table></td><td>
<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://info.node4.co.uk/mid-market-it-priorities-in-2018" target="_blank"><img border="0" src="cid:118072315553501889@uk-mta-54.uk.mimecast.lan"></a></td></tr></tbody></table>
</td>
</tr>
</tbody></table>
<p> </p>
</td>
</tr>
    <tr>
    <td colspan="8">
    
<small style="font-family:Arial;color:#8e908f">
<br>Node4 Limited is registered in England No: 04759927 and has its registered office at Millennium Way, Pride Park, Derby, DE24 8HZ<br>
The information contained in this email is confidential and is intended for the exclusive use of the email addressee shown.<br>
If you are not the addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited.<br>
If you have received this mail in error, please notify our mail manager at <a href="mailto:abuse@node4.co.uk" style="color:#e05206;text-decoration:none" target="_blank">abuse@node4.co.uk</a> and delete it from your system.<br>
Opinions expressed in this email are those of the individual not the company, unless specifically indicated to that effect.


<hr style="height:0;border-top-style:solid;border-top-color:#d1d4d3;margin:4px 0px;border-width:1px 0 0">

This email has been scanned by Node4&#39;s Email Security System.
<hr style="height:0;border-top-style:solid;border-top-color:#d1d4d3;margin:4px 0px;border-width:1px 0 0">
This email message has been delivered safely and archived online by Mimecast.</small>
    
</td>
    </tr>
</tbody>
</table>
  
 

</div>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div></div>