I am a web dev that has made several droplets for clients that have extremely low-traffic Wordpress sites. I generally recommend the smallest droplet with Ubuntu 12.04 and the LAMP stack.
However, the MySQL process on each of these droplets will periodically crash, causing the site to go down until it is manually restarted. I believe the problem is due to a loss of memory. I know that one solution would simply be to increase the size of the droplet, but these sites are extremely low-traffic (handful of page views per day) and this is still occurring. Is there some ideal configuration that may prevent this, or some known issue with the default MySQL configuration on the smallest droplet that has a fix?
Thank you!
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!
One thing you can do to help with running out of memory on the smallest droplet is to add a swap file. This way on the rare occasions when your memory consumption spikes, it will use the swap rather than crashing. See: <br> <br>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 <br> <br>On Ubuntu, you might also want to take a look at the file: <br> <br>/usr/share/doc/mysql-server-5.5/examples/my-small.cnf <br> <br>It contains some configuration optimizations for using MySQL on systems with little memory. You can replace /etc/mysql/my.cnf with it, or just tweak certain options as you see fit.
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.