Using a worker for a different purpose

Iñaki Baz Castillo ibc at aliax.net
Thu Jan 7 15:58:53 EST 2010


El Jueves, 7 de Enero de 2010, Eric Wong escribió:

> > It seems interesting. Just a doubt: would it work with "preload_app
> > true"? I use preload_app since in case he config.ru is wrong then it
> > raises in the master (instead of raising each worker and being reaped
> > again and again).
> 
> It should work, but you won't be saving memory/spawning time with
> "preload_app true" since you're replacing the app with a new one.
> 
> It's really dirty and smelly.  Processes are a great OS-level
> abstraction to separate distinct services from each other.  IMHO it's
> saner to just run another Unicorn instance.
> 
> Unicorn is not a VM, after all :)

Yes, you are right. In fact the purpose of such worker would not be a Rack 
handler (http server) but a different one.
Humm, I think I'll keep it simple and run an external process :) 


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


More information about the mongrel-unicorn mailing list