Question

Can I use two droplets for one website?

Can I use one droplet for my website whilst another droplet for the MySQL, xmpp chat, images/videos. The problem is that I have easily exhausted my Disk space whilst I dont really need the huge RAM/CPU.

Our site, a social website has lots of images and then we are having "A Database Error Occurred. Unable to connect to your database server using the provided settings " messages often.

Will appreciate words of wisdom from a kind member


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Why not just use Load Balancing?

One option would be to use DO private networking. Where one droplet would host your application server and the other would hold the database. Or maybe have your master droplet remote mount directories from your slave droplet. In both examples, you would probably want all of those resources only directly accessible behind the firewall. NOTE: private networking need to be located in the same data center, last time I looked.

Another tool to use with multiple droplets is to use DNS to seperate your URI’s, such as one droplet serving your http or https URIs, and another droplet being your ftp resource. Even though both droplets would be directly accessible, you can still use private networking between your droplets to have your server apps talk to your privately networked database.