Question
Ideal configuration for MySQL on the smallest droplet?
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!
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 Garrett
I have exactly the same use case and issue. A little annoyed that this isn’t clear before its too late. It’s not economical to simply double the resources for small sites. I think some settings in my.cnf could work. SWAP files seem to be discouraged but I am not sure how much is SALES speak as it doubles revenue just asking people to upgrade…