<div dir="ltr">Hey jay, thank you for the replay.<div>Is this is a formal conclusion? Maybe the oldest is the one with the smaller ID ?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 27, 2014 at 2:50 PM,  <span dir="ltr">&lt;<a href="mailto:jayknowsunix@gmail.com" target="_blank">jayknowsunix@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">Guy,<br>
<br>
I run a master with 2 slaves. During a failover, I always see the oldest slave promoted to master. So, the selection is based on the server which has been running longer.<br>
<br>
--<br>
Jay<br>
<br>
Sent from my iPad<br>
<div><div class="h5"><br>
&gt; On Jul 27, 2014, at 3:48 AM, Guy Meler &lt;<a href="mailto:melguy@gmail.com">melguy@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hey :)<br>
&gt; In master/slave mode, what is the algorithm for choosing the next available primary backend?<br>
&gt; I want to make sure that if primary in site A goes down, than the next available primary is in the same site.<br>
&gt;<br>
&gt; Thank you<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; pgpool-general mailing list<br>
&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div><br></div>