Report this

What is the reason for this report?

How to create a simple "http file not found" failover between two droplets in the same data center using floating IPs?

Posted on November 28, 2017

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.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.