<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:medium;"><div><div>Avi,</div><div><br></div><div>It is true that pgpool will not execute the follow master script on your slave if it is unknown of pgppol but on the other hand, in the failover script you can do what you want. In your case you could ssh to your permanent slave (which is not known to pgpool) and execute the postgres command to follow the new master.</div><div><br></div><div>Lazara,</div><div><br></div><div>Is it possible to use pgpool for load balancing and repmgrd for automatic failover ? I could not understand how to make this work. Is it enough to leave the pgpool configurations for failover script and follow_master script empty ? Is pgpool going to automatically detect that there is a new master and restart the child processes ?</div><div><br></div><div><br></div><div>Pierre</div><div><br></div></div><div><br></div><div><br></div><div id="ydp185476a9yahoo_quoted_6688933274" class="ydp185476a9yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div>On Thursday, June 1, 2017, 3:29:50 PM GMT+2, Lazaro Garcia &lt;lazaro3487@gmail.com&gt; wrote:</div><div><br></div><div><br></div><div><div id="ydp185476a9yiv0998764849"><div><div class="ydp185476a9yiv0998764849WordSection1"><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">For that you can use repmgr for controlling the replica, promoting new master, and follow the slaves to new master and pgpool for load balancing, and HA of the cluster.</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">Regards.</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><div class="ydp185476a9yiv0998764849yqt5192638334" id="ydp185476a9yiv0998764849yqt29025"><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;"><p class="ydp185476a9yiv0998764849MsoNormal"><b><span style="font-size:11.0pt;">De:</span></b><span style="font-size:11.0pt;"> pgpool-general-bounces@pgpool.net [mailto:pgpool-general-bounces@pgpool.net] <b>En nombre de </b>Avi Weinberg<br clear="none"><b>Enviado el:</b> jueves, 1 de junio de 2017 09:09 a. m.<br clear="none"><b>Para:</b> pgpool-general@pgpool.net<br clear="none"><b>Asunto:</b> [pgpool-general: 5548] Re: Server to never assume the role of master</span></p></div></div><p class="ydp185476a9yiv0998764849MsoNormal"> &nbsp;</p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">Hi,</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">Thanks for the quick reply!&nbsp; </span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">I think it will not be that simple in my case since I want the "permanent slave" server to point to the new master when there is a failover.&nbsp; In case of a failover I want the "permanent slave" to be notified even if the other "non-permanent" slave is dead</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">I doubt it can achieved without pgpool knowing about the permanent slave? &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">Thanks</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;">Avi</span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US" style="font-size:11.0pt;"> &nbsp;</span></p><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;"><p class="ydp185476a9yiv0998764849MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;">From:</span></b><span lang="EN-US" style="font-size:11.0pt;"> PVY [<a shape="rect" href="mailto:balroga3@yandex.ru" rel="nofollow" target="_blank">mailto:balroga3@yandex.ru</a>] <br clear="none"><b>Sent:</b> Thursday, June 01, 2017 2:45 PM<br clear="none"><b>To:</b> Avi Weinberg &lt;<a shape="rect" href="mailto:AviW@gilat.com" rel="nofollow" target="_blank">AviW@gilat.com</a>&gt;<br clear="none"><b>Cc:</b> <a shape="rect" href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br clear="none"><b>Subject:</b> Re: [pgpool-general: 5546] Server to never assume the role of master</span></p></div></div><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US"> &nbsp;</span></p><p class="ydp185476a9yiv0998764849MsoNormal" style="margin-bottom:12.0pt;"><span lang="EN-US" style="font-size:10.0pt;">Hello, Avi.<br clear="none"><br clear="none">As far as I understand, if replication is configured on postgresql side, not via pgpool, then you can simply do not add this particular slave server to pgpool.conf.<br clear="none">In this case pgpool would not know about this slave and it will never promote it or send queries to it.</span><span lang="EN-US"></span></p><table class="ydp185476a9yiv0998764849MsoNormalTable" border="0" cellpadding="0"><tbody><tr><td colspan="1" rowspan="1" width="2" style="width: 1.5pt; background-color: blue; padding: 0.75pt;"></td><td colspan="1" rowspan="1" style="padding:.75pt .75pt .75pt .75pt;"><p class="ydp185476a9yiv0998764849MsoNormal"><span style="font-size:11.0pt;">Hi all,<br clear="none"><br clear="none">I would like to have a master with two slaves setup. &nbsp;However, I want one of the servers to always be slave and never assume the role of master. &nbsp;Even more so, I would pgpool not to direct any queries to this "permanent slave" server.<br clear="none">How do I configure pgpool / postgres to achieve this<br clear="none"><br clear="none">Thanks<br clear="none">Avi<br clear="none"></span><span style="font-size:10.0pt;">IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person. </span></p></td></tr></tbody></table><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US"><br clear="none"><br clear="none"><br clear="none"><br clear="none"></span><i><span lang="EN-US">-- <br clear="none">Best regards,<br clear="none">PVY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></i><span lang="EN-US"><a shape="rect" href="mailto:balroga3@yandex.ru" rel="nofollow" target="_blank"><span>mailto:balroga3@yandex.ru</span></a></span></p><p class="ydp185476a9yiv0998764849MsoNormal"><span lang="EN-US">IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person. </span></p></div></div></div></div><div class="ydp185476a9yqt5192638334" id="ydp185476a9yqt33202">_______________________________________________<br clear="none">pgpool-general mailing list<br clear="none"><a shape="rect" href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br clear="none"><a shape="rect" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="nofollow" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br clear="none"></div></div></div></div></div></body></html>