Report this

What is the reason for this report?

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

Posted on September 13, 2016

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.



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!

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.