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!
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>
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.