How to create a simple "http file not found" failover between two droplets in the same data center using floating IPs?
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.
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.