<div dir="ltr">Hi<div><br></div><div>Can you please share the pgpool-II log with debug enabled.</div><div><br></div><div>Thanks </div><div>Best regards</div><div>Muhammad Usama</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 8:18 PM, Maksym Filenko <span dir="ltr">&lt;<a href="mailto:maksym.filenko@kreditech.com" target="_blank">maksym.filenko@kreditech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey everyone,<div><br></div><div>I&#39;ve set up exactly this configuration: <a href="http://www.pgpool.net/pgpool-web/contrib_docs/watchdog_master_slave_3.3/en.html" target="_blank">http://www.pgpool.net/pgpool-web/contrib_docs/watchdog_master_slave_3.3/en.html</a></div><div><br></div><div>I have two instances of pgpool-II version 3.3.4 (tokakiboshi) in front of two PostgreSQL 9.4.3.</div><div><br></div><div>I have following in my pgpool.conf:</div><div><br></div><div><div>failover_command = &#39;/var/lib/postgresql/9.4/main/failover.sh %d %P %H %R&#39;</div></div><div><br></div><div>When master goes down and failover occurs, pgpool passes nothing to failover.sh as the new master hostname (%H) and database cluster path (%R):</div><div><br></div><div>$ grep &#39;failover&#39; /var/log/messages</div><div><div>failover_handler: no valid DB node found</div><div>execute command: /var/lib/postgresql/9.4/main/failover.sh 0 0</div><div>failover: set new primary node: -1</div></div><div><br></div><div>If the slave fails, everything works as expected:</div><div><br></div><div><div>$ grep &#39;failover&#39; /var/log/messages<br></div><div>execute command: /var/lib/postgresql/9.4/main/failover.sh 1 0 <a href="http://db1.example.com" target="_blank">db1.example.com</a> /var/lib/postgresql/9.4/main</div><div>failover: set new primary node: 0</div><div>failover: set new master node: 0</div></div><div><br></div><div>Looks like pgpool doesn&#39;t see the slave to promote it.</div><div><br></div><div>Any clue would be extremely appreciated!</div><div><br></div><div>Best regards,</div><div>Max</div></div>
<br>_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">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>
<br></blockquote></div><br></div>