HA Proxy and Disaster Recovery - Only access server if others are down?
- by ben2004uk
Why I expect this is not the best way to solve the problem, I got thinking tonight.
I'm thinking about geo-locating servers. Given we have a load balancer + two servers to handle traffic in NA (North America) and one server in the EU.
If the two US servers die, is it possible to get HAProxy to direct traffic automatically to the EU one.
However, I don't want to use a roundrobin approach for the EU - just the two US ones. The EU should only be hit when the other two are down.
Does anyone know how to configure HAProxy to do this?
Thanks
Ben