mysql - What are potential negative side effects of running a cronjob every few minutes to start mysqld? -
i have issue mysql server on 1 of physical webservers. crashes periodically ( every few tens of days or ). have been unable trace issue. site not need every second, being down few minutes once week not issue.
in lieu of continuing chase issue, can run cronjob attempts start mysql every minute. when goes down, it'll come 60 seconds later.
*/1 * * * * /sbin/service mysqld start
what potential negative side effects of solution ( besides being super lame i'm not chasing root cause ... i've got more important things ).
i had problem demon (vpnc
)that keep falling on did start in non-demon mode in loop:
while true demon-process-foreground sleep 1 done
the sleep 1
optional. running mysql in foreground have @ running mysql in foreground in centos
Comments
Post a Comment