Question

Clone droplet to create a 2 server cluster/file replication

I have a website running on Ubuntu 20.04 via Gridpane. The server is constantly overloaded (CPU) by product imports which need to be refreshed and reimported on a regular basis leading to poor use experience. My question here is; Is it possible to clone my droplet, spin up another droplet and cluster the servers together so one server serves traffic, and the other manages all the imports/calculation and batch processing?


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.

Hi @LiamFirth,

Yes, it’s possible to do that.

The cloning of the Droplet can be done using a snapshot :

https://docs.digitalocean.com/products/images/snapshots/

Regarding the load balancing, you’ll need another Droplet which will have the role of a proxy. Haproxy is the obvious choice in my eyes as well. Additionally, you can separate your Database from your Droplet so that it has a dedicated space for itself.

I’ll recommend checking the Managed Databases product DigitalOcean offers here:

https://www.digitalocean.com/products/managed-databases

Hello there,

Yes, you can spin up another droplet via snapshot from the current server and then use Haproxy for load balancing. You can have two web servers and one database server for example.

You can check our tutorial on An Introduction to HAProxy and Load Balancing Concepts

https://www.digitalocean.com/community/tutorials/an-introduction-to-haproxy-and-load-balancing-concepts

Hope that this helps!