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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.