I just noticed mysqld stopped running an an ec2 instance (ubuntu). I simply started it again. How can I avoid this from happening again. Will mysqld restart if Amazon restarts the instance for any reason. If not do I need to add an entry into rc.local? Thanks
Asked
Active
Viewed 1,070 times
0
-
First step's going to be finding out **why** it stopped. Check your logs. – ceejayoz Nov 14 '12 at 19:57
2 Answers
2
May be you are running out of memory. I had a site where I have used Micro instance and my web application was very heavy.So, mysql was getting down after some time as soon as it went out of memory. Also you can check the server load on your instance.
Jigar Savla
- 29
- 2
0
If you installed the default mysql-server
ubuntu package, then it would be set to start on boot. You should not add anything to your rc.local
file.
To ensure you know when and if it dies, you need to set up your own monitoring and notifiction system.
For monitoring system options, please see this Q&A.