failover / fault-tolerant configurations

J Davis mrsalty0 at
Thu May 22 00:25:17 MSD 2008

If you have multiple machines running identically configured instances of
nginx, then you can configure the IP failover using something like wackamole
or heartbeat.
You won't need anything special for the nginx configuration.
Session affinity can be enable in nginx using ip_hash directive of the nginx
upstream module.
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.


On Wed, May 21, 2008 at 3:22 PM, alex clemesha <clemesha at> wrote:

> Hi,
> I'm looking for more information on setting up 2 Nginx instances
> in a failover active/active configuration.
> The scenario that I'm trying to accomplish is this:
> 2 Nginx instances, both doing some sort of Session affinity
> with, say the
> module.
> If one of the Nginx instance fails, I hope to have the second keep
> handling incoming requests.
> ---
> Now, I'm not sure if I'm verbalizing what I'm trying to do correctly,
> but my general goal is to create a fault - tolerant setup.
> Any advice is appreciated, especially any advice of best practices
> in this general arena, Nginx limitations, or alternate configurations.
> thanks,
> Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list