How does one go about having multiple droplets ?

  • Posted February 21, 2013

Is there any way I can scale ? Say add additional droplets when load increases ?

Also - If I have a separate job server , separate db server and separate frontend web server - How do I set up communication between them ?

Links to articles would be appreciated


Submit an 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.

A very simple Load Balancer can be done with Nginx. I already did mine and I’m in the process of setting up some custom scripts to auto scale up or down according to my server’s load. I know, if my main droplet goes down, my entire mini network will go down as well…But hey, you get what you pay for.

Right now, there’s not an auto-scaling feature available. I’d definitely love to see one, though for the time being, you would need to manually re-size the VPS through the control panel if you needed to add more CPU/RAM to cope with higher loads. It does require that you power off the VPS, so you’ll need to factor that in. Reboots are normally very quick, though if you re-size the disk as well, the time for the re-size + reboot could take a little longer. <br> <br>As far as doing a cluster setup, there are a few articles to get you started, though I’ve not seen one which lists all the steps individually. You’d need to break down the process of setting up one server into multiple. <br> <br>As an example, this is a quick-and-easy guide to setting up CentOS with NGINX, MySQL, and PHP-FPM. <br> <br> <br> <br> <br>If you need to setup a MySQL Server, you can do that relatively easy. On CentOS all you’d need to do is run a few commands to get things going. You’d need to skip “Step Two” in the guide above as you’ll be performing that below. <br> <br>1). yum update -y <br>- - Updates all software on the VPS <br> <br>2). yum install mysql mysql-server -y <br>- - Installs MySQL <br> <br>3). /etc/init.d/mysqld start <br>- - Starts MySQL <br> <br>4). /usr/bin/mysql_secure_installation <br>- - Allows you to set a root password for MySQL, remove test users, and other un-needed info. <br> <br>5). /etc/init.d/mysqld restart <br>- - Restart MySQL <br> <br> <br>Now MySQL is up, running, and you can connect to it using the IP of your VPS. I would advise installing a firewall to block connections from all IP’s except the ones you want to connect as leaving it open as it would be right now would make it susceptible to attack. <br> <br> <br>To setup a web server, you can follow the same guide, start at the top and skip “Step Two”