I’m running a Drupal website on my $10/mo droplet(I’m going to upgrade to $20/mo), but sometimes it crash with 200~250 concurrent users, I was thinking on give more resources to php/mysql/apache processes but don’t know where to start or what configurations are needed.
PD: I have optimized my Drupal website, so I’m just looking for php/mysql/apache.
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!
If you’re seeing services crash under high load there is a good chance your droplet is exhausting it’s available memory. The first thing I would recommend is to set up a swap file.
This should help prevent the crashes as a service would not simply run out of memory when the physical RAM is all in use. Instead of a crash you may see some slowdown in responses since your system would be swapping out memory to disk rather than simply crashing. This is a good stop-gap but you would then want to dig into things to see what you can further optimize or whether you need to upgrade to a larger droplet.
Another thing that may provide some relief to your server is to set up CloudFlare’s reverse proxy service for your domain. This provides a cache between your droplet and your users and can significantly reduce the load on your droplet, especially when you are seeing a lot of visitors.
If your site has a lot of database queries you might consider memcached (if mysql is crashing) I recently had an issue with Joomla running a custom application that was very database intensive and memcached solved things…although I already had a swap partition as well.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.