-
Notifications
You must be signed in to change notification settings - Fork 432
Prevent MySQL crashing
On our support forum and GitHub issue tracker, we are seeing some are facing MySQL crashing issue. This issue is commonly observed on Digital Ocean 512 plan. We are still working on preventing MySQL crash, below are some common points and measures observed.
For all VPS we recommend at least 1GB swap.
How to create SWAP: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
By default EasyEngine sets this values to 100, thanks to Kym for pointing, on low RAM VPS, for high traffic PHP5-FPM takes nearly all RAM, leaving no RAM to MySQL
Change PHP5-FPM pm.max_children: Open www.conf file:
vim /etc/php5/fpm/www.confFor 512MB - 1GB RAM:
pm.max_children = 10For 2GB RAM:
pm.max_children = 20For 4GB RAM:
pm.max_children = 50After that you need to restart PHP5-FPM
php5-fpm -t && service php5-fpm restartTuning MySQL is always good practice. You can use following command to get MySQL tuning suggestions.
- MySQL Tunner
mysqltuner- Tuning Primer
tuning-primer.shAdjust the MySQL values as per suggestions in my.cnf file
vim /etc/mysql/my.cnfand restart MySQL
service mysql restartIf you still facing MySQL crashing issue, we are always ready to help you, for this you can use this thread: #244
EasyEngine (ee):
- Installation
- Stack Module
- Site Module
- Debug Module
- Secure Module
- Other commands
- Configurartion File
- EasyEngine Logs
Tutorials:
- SFTP Setup
- Remote MySQL
- Setup OpenDKIM
- HHVM with EE 2.x.x
- Prevent MySQL crashing
- Change WordPress Cache
- Migrate Website With EasyEngine
- EasyEngine with Hosting Providers
Misc:
- FAQ
- Roadmap
- [Support Forum] (http://community.rtcamp.com/c/easyengine/)
- EasyEngine Update
- EasyEngine Admin Tools
- EasyEngine Beta Testing
Chat:
- [EasyEngine Developer Chat] (https://gitter.im/rtCamp/easyengine)
Testing:
- [Travis-CI] (https://travis-ci.org/rtCamp/easyengine/)
Donations:
Recently Modified: