Standby Node/Failover for Web Apps

June 11, 2019 468 views
Nginx Node.js High Availability

I’m wanting to set up a server which will host multiple node.js apps and use nginx as a reverse proxy to server them all on port 80

I’m wanting to set up a failover system so if the primary app server dies then traffic can be served from a different server. I was thinking of setting up a standby node which is a duplicate of the primary app server and then move the floating IP from the main app server to the standby server if the primary server dies, is there a good way to keep both servers in sync and then do an automatic move of the Floating IP, can the load balancer do the failover?

I don’t want to be load balancing the traffic between two servers, the second server will simply be a backup/dr server (which i’ll run at a lower spec to primary and then scale up in case of failover)

Be the first one to answer this question.