failover / fault-tolerant configurations
nginxlist at calomel.org
Thu May 22 00:34:56 MSD 2008
If you just want to stick with Nginx then you could set one daemon up
as the proxy front end and two Nginx daemons behind it. If one of the
back ends fail (One or Two) then traffic will be sent to the other
/- Nginx back-end One
Internet -- Nginx Loadbalanacer<
\- Nginx back-end Two
If you use OpenBSD then you could use Pf or Relayd to do the job of
the fail-over load balancer. Relayd allows many checks of the back end
including ICMP, http error code or running custom scripts.
Hope this helps,
Calomel @ https://calomel.org
Open Source Research and Reference
On Wed, May 21, 2008 at 12:22:28PM -0700, alex clemesha wrote:
>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 http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule
>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.
More information about the nginx