How to scale droplet for increased traffic?

Posted December 12, 2019 1.4k views
DigitalOcean Accounts

Hi, I have a site and a forum each of which is hosted on one droplet. The site was down for a couple of hours because of increased traffic. Where or how do I see when the droplets reach their capacity limit and how do I adjust the droplets to meet the demands of increasing traffic? Many thanks, Torsten

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.

Submit an Answer
1 answer

Hi @englishdotbest,

There is no certain full proof way.You’ll need to start gradually upgrading your droplet and see how it handles the traffic.

You can see when did the droplet reached it’s capacity limit in regards to CPU from your Control Panel -> Droplet -> Graphs.

As to the exact reason why, you’ll need to do this directly on the droplet. There you can check how many IPs were connected to your droplet using

netstat -punta

You can check your CPU usage using a tool like htop. Additionally, in htop you can check what exactly is taking so much CPU and RAM and work towards optimizing it. Having said that, you’ll just need to gradually update your droplet and see when it will be okay to function normally.

Additionally, depending on the services you use, you’ll need to start increasing their memory,slots,max connections, workers etc.