Strange Thread related errors

Iñaki Baz Castillo ibc at aliax.net
Thu Jan 7 13:33:37 EST 2010


El Jueves, 7 de Enero de 2010, Jeremy Evans escribió:
> > Don't set the Sequel instance in the master process, instead do it in
> > each worker ("after_fork" block in unicorn config file).
> 
> Alternatively, you can set up the Sequel Database in the master
> process, and just call Database#disconnect before forking.

Yes, in fact I do that to check the database connection when starting Unicorn 
and raise if some database fails.
Then I disconnect the databases and reconnect in each worker. 


-- 
Iñaki Baz Castillo <ibc at aliax.net>


More information about the mongrel-unicorn mailing list