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?
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 to do that.
The cloning of the Droplet can be done using a snapshot :
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:
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
Hope that this helps!
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now