<div dir="ltr">Hi,<div><br></div><div>scenario</div><div>server1 - master pgpool + primary postgres</div><div>server2 - slave pgpool + secondary postgres.</div><div><br></div><div>1. server1 (master pgpool + primary postgres) is being poweroff.</div><div>2. server2 is being <span style="font-size:12.8px">successfully escalating to the master Pgpool-II. postgres failover is being triggered (secondary pgpool has been promoted) !!!! pgpool keeps searching for the primary node!!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">pgpool log attached...</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks,</span></div><div><span style="font-size:12.8px">cohavisi</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 17, 2017 at 2:27 PM, Muhammad Usama <span dir="ltr">&lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.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">Hi,<div><br></div><div>There doesn&#39;t seems to be anything wrong with the configuration or cluster design, And if the secondary Pgpool-II is successfully escalating to the master Pgpool-II and acquiring the VIP, It should also perform the backend node failover without any problem.</div><div><br></div><div>Can you please elaborate the situation what actually is the behaviour of Pgpool-II after the server1 failure.</div><div><br></div><div>1- Does Pgpool-II (on server 2) performs the backend failover but it does not promotes the standby PostgreSQL to primary?</div><div>2 - Or is it the case where Pgpool-II never performs the failover.</div><div><br></div><div>Also It would be really helpful if you can share the pgpool log file when this situation occurs.</div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><div class="gmail_extra">Best regards</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">Muhammad Usama</div></font></span><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jul 14, 2017 at 9:56 PM, Shay Cohavi <span dir="ltr">&lt;<a href="mailto:cohavisi@gmail.com" target="_blank">cohavisi@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div>I have 2 postgres servers (postgres 9.3.5) installed with pgpool(3.6.4) on the same node.</div><div><br></div><div><br></div><div>server1 192.168.15.55</div><div>server 2 192.168.15.56</div><div>pgpool vip 192.168.15.59</div><div><br></div><div><br></div><div><br></div><div><img src="cid:ii_j5440tpw2_15d420772c4ababb" width="544" height="408">​<br></div><div><br></div><div><br></div><div># psql -U postgres -h 192.168.15.59 -p 9999 -c &#39;show pool_nodes&#39;<br></div><div><div> node_id |   hostname    | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay</div><div>---------+---------------+----<wbr>--+--------+-----------+------<wbr>---+------------+-------------<wbr>------+-------------------</div><div> 0       | 192.168.15.55 | 5432 | up     | 0.500000  | primary | 3718       | true              | 0</div><div> 1       | 192.168.15.56 | 5432 | up     | 0.500000  | standby | 0          | false             | 0</div></div><div><br></div><div><br></div><div><br></div><div>my question is about disaster recovery scenario:</div><div><br></div><div>1. <b>&quot;primary postgres&quot; and the &quot;master pgpool&quot; is on server1</b> . pgpool vip established on this node (192.168.15.59)</div><div><br></div><div>2. server1 went down due to  power break. (server1 is dead!!!)</div><div><br></div><div>3. pgpool on server server2 get promoted (vip established 192.168.15.59) .</div><div><br></div><div><span style="background-color:rgb(255,255,255)"><font color="#ff0000">4. NO postgres failover action occurs by the pgpool. pgpool keeps searching for primary postgres with no success.</font></span></div><div><br></div><div>should the new master pgpool execute an failover action(promote) to the slave postgres ??</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>cohavisi </div></div>
<br></div></div><span class="">______________________________<wbr>_________________<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/<wbr>listinfo/pgpool-general</a><br>
<br></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>