Question

how to create automatic failover on 8-nodes (4 stacks) across 2 datacenters ? SFO & NYC

i have HAproxy & Keepalived currently. Using the DO featured floating IP only helps with 2 stacks in the same datacenter. Cloudflare Doesn’t automatically failover, half of users will be without service if i use several DO featured floating ip’s.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you’re looking to route traffic based on Geolocation then something like this might be helpful in front of your stacks. Since DO IPs are tied to a single physical location and cannot be multicast or otherwise refer to more than one location you would either need to have a single entry point (which could be a floating IP with failover handled by something like heartbeat), use a service like CloudFlare (which could be put in front of the failover / heartbeat / floating ip configuration), or use something like geoDNS to route traffic to the closest data-center, implementing failover in each DC individually.