There are many ways to fix this, first you can set the monitor option to true in your daemons config file(daemons.yml file), the only bad thing about this is that it consumes additional memory, in my case memory is a resource I can't spend since my slice server just has 256mb.
What I did to fix this was, everytime Im gonna make a query the database connection is checked, if it's down the daemon has to reconnect it by using:
ActiveRecord::Base.connection.reconnect!
Another thing you can do is set a bigger value in the wait_timeout variable in the MySql config file, depending on what you have to do and your available resources, you should try one of these ways.
2 comments:
Thanks for this - simple fix to at least one of my problems.
Did you run into any problems with multiple PIDs starting from your Daemon? My resource usage is pretty heavy and I get # sometimes...
Cheers,
Aaron
Pc games free
gta 4 free download
Post a Comment