Report this

What is the reason for this report?

load balancer the load balancers

Posted on July 29, 2013
brad

By brad

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.



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!

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 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>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>

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.