[Mongrel] MySQL timeout value (was: mongrel - monit issue)

Luis Lavena luislavena at gmail.com
Wed Nov 7 21:59:09 EST 2007


On Nov 7, 2007 9:33 PM, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
>
>
>         The way that I have put this issue to bed for people is with this
> crunchy little hack in their environment.rb:
>
> Thread.new { loop { sleep 60*60
> ActiveRecord::Base.verify_active_connections! } }.priority = -10
>
>         That little baby will keep your database connected.
>

Hey Ezra, this 60*60 big sleep wouldn't hurt threading? so far big
sleepy threads didn't work as expected for me.

That could be another cross-platform misbehaving, but just asking :-)

Regards,

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi


More information about the Mongrel-users mailing list