By davar
Trying to create fail-over between two droplets in the same data center using floating IP. The droplets are running NGINX with a module that’s constantly generating a new status.html file. If there is a problem, status.html will no longer be produced and is automatically cleared. All that’s needed for the the failover test, is if http://PrimaryDroplet/status.html is not found, then floating IP should route to http://BackupDroplet/status.html. I am looking for the simplest way of implementing such a failover. I have already read the Floating IPs tutorial that references Corosync and Pacemaker, Keepalived and Heartbeat. Is there a SIMPLER way of implementing this scheme? Thanks.
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!
To me it appears that:
When you have a load balanced setup it doesn’t make a lot of sense to have a “cold standby” just sitting there waiting for the “active” one to fail - You’re paying to have the droplet running, you might as well have each of them serve 1/n of your traffic.
(Obviously It depends heavily on the level of control you have over the code that generates your status. If it’s super expensive to run you might not want to run it at full force on 2 droplets - but maybe it’s not that intensive)
Thanks for your reply. The point is not load balancing, but failover; i.e. having redundancy. In this case a passive node (cold standby) is exactly what’s needed. Some applications are important enough to justify placing them on standby. Note, the backup droplet will continue to receive the same feed as the primary; but not any requests – that is, until the primary fails.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.