If you have multiple machines running identically configured instances of nginx, then you can configure the IP failover using something like wackamole or heartbeat.<br>You won&#39;t need anything special for the nginx configuration. <br>
Session affinity can be enable in nginx using ip_hash directive of the nginx upstream module.<br>One thing this will not get you is session failover. In other words, if your active instance of nginx dies the current information about session affinity will also be lost.<br>
<br><a href="http://wiki.codemongers.com/NginxHttpUpstreamModule#ip_hash">http://wiki.codemongers.com/NginxHttpUpstreamModule#ip_hash</a><br><a href="http://www.backhand.org/wackamole/">http://www.backhand.org/wackamole/</a><br>
<a href="http://www.linux-ha.org/">http://www.linux-ha.org/</a><br><br>-Jake<br><br><div class="gmail_quote">On Wed, May 21, 2008 at 3:22 PM, alex clemesha &lt;<a href="mailto:clemesha@gmail.com">clemesha@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I&#39;m looking for more information on setting up 2 Nginx instances<br>
in a failover active/active configuration.<br>
<br>
The scenario that I&#39;m trying to accomplish is this:<br>
<br>
2 Nginx instances, both doing some sort of Session affinity<br>
with, say the <a href="http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule" target="_blank">http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule</a><br>
module.<br>
<br>
If one of the Nginx instance fails, I hope to have the second keep<br>
handling incoming requests.<br>
<br>
---<br>
<br>
Now, I&#39;m not sure if I&#39;m verbalizing what I&#39;m trying to do correctly,<br>
but my general goal is to create a fault - tolerant setup.<br>
<br>
Any advice is appreciated, especially any advice of best practices<br>
in this general arena, Nginx limitations, or alternate configurations.<br>
<br>
<br>
thanks,<br>
<font color="#888888">Alex<br>
<br>
</font></blockquote></div><br>