<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"><<a href="mailto:jayknowsunix@gmail.com" target="_blank">jayknowsunix@gmail.com</a>></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>
> On Jul 27, 2014, at 3:48 AM, Guy Meler <<a href="mailto:melguy@gmail.com">melguy@gmail.com</a>> wrote:<br>
><br>
> Hey :)<br>
> In master/slave mode, what is the algorithm for choosing the next available primary backend?<br>
> I want to make sure that if primary in site A goes down, than the next available primary is in the same site.<br>
><br>
> Thank you<br>
><br>
</div></div>> _______________________________________________<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" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div><br></div>