I am trying to figure out how to use your service to host a load balancer server with web servers set up in the back end. The front end load balancers would be nginx solely for proxying, caching and load balancing the traffic to the two back-end web servers. Of course I need to make sure that neither server fails so I am creating a pair of them to load balance each other.
My question is how to I set up a pair of nginx (or any other tech, ex. haproxy) in a cluster. Other environments provide a VIP that I would use for external access. I would then set up my DNS to point to this VIP. If one of the servers goes down, no big deal.
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.
Thanks Jon! I will be keeping an eye on DO in the future.
Hi Brad, <br> <br>Not sure if Digital Ocean can support this, but here’s a link to a vanilla way of pairing nginx instances using Linux heartbeat: <br> <br>http://people.adams.edu/~cdmiller/posts/nginx-heartbeat-ha/ <br> <br>Enjoy! <br>
thanks for the response! <br>I have gone through these articles and I see that there still exists the problem that I am trying to solve; eliminate any single point of failure. If my load balancer fails my entire site will be down until that droplet can start back up again.
Hi Brad, <br> <br>We have an article on setting up Nginx load balancing: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-load-balancing <br> <br>And a couple of articles on scaling: <br> <br>https://www.digitalocean.com/community/articles/how-to-scale-your-infrastructure-with-digitalocean <br>https://www.digitalocean.com/community/articles/how-to-scale-web-applications-on-ubuntu-12-10 <br> <br>Let me know if these resources help.