Report this

What is the reason for this report?

Multiple droplets hosting 1 website

Posted on August 15, 2013

Hi guys, I was just wondering if it was possible to host 1 website off of multiple droplets and use load balancing to pick which droplet the user connects to?

Thanks in advance, Francis



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.

Yes, it’s possible. You can use a DNS service like Amazon Route 53 that routes the user to the nearest server.

If the servers are in the same location, you can use 1 droplet as a NFS server and mount that on all servers. You can do this even if the servers are not in the same place, but can become a huge problem. <br>There’s also different ways ( like syncing files on update with some custom made scripts - lsyncd is an example ) <br>Also, the sessions between the servers have to use a memcached server <br>

Thanks for your reply, but what I meant was how can you replicate the Apache configuration on both servers to display the same website (so when you update a website it updates across all servers) ? <br> <br>Thanks again, <br>Francis

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.