[Rubyworks-users] why runit?
aslak hellesoy
aslak.hellesoy at gmail.com
Thu Jan 3 08:25:17 EST 2008
On Jan 3, 2008 1:33 PM, Jeff Xiong <gigix1980 at gmail.com> wrote:
> Monit starts mongrel and haproxy processes in daemon mode. That means
> you have to manage all those PID files, otherwise you may get some
> zombie PID files and cannot restart mongrel/haproxy any more. That's
> why we added runit: it starts those processes as its sub-processes and
> doesn't need any PID file.
>
> So we just use monit to "monitor" mongrel/haproxy processes, and use
> runit to "run it". It sounds reasonable, doesn't it?
>
(Reposting - you should set the REPLY-TO header for this list to
rubyworks-users at rubyforge.org)
Jeff, Alex,
I thought it was the daemon/pid issue - just wasn't sure. Thanks for
clarifying this.
I've set up a clean ubuntu/rubyworks box at our intranet where we plan
to host a dozen or so Rails apps with very low traffic.
I'm thinking haproxy is not needed and one mongrel per app is probably enough.
I'm going to use monit/runit (and vlad) to get these apps running.
I'll probably make some vlad (Rake) plugins that will:
* Generate and upload a new runit config for a mongrel
* Generate and upload a new monit config for a mongrel
* Generate and upload a new Apache config that will set up proxying
via a virtual host
* Plus a standard way to redeploy applications and restart them with monit
Is this something that you'd be interested in including in the stack
if I donate it?
Aslak
>
> On Jan 3, 2008 6:09 PM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > On Jan 3, 2008 12:15 AM, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > > Hi,
> > >
> > > I'm digging into the RubyWorks stack and learning about monit and
> > > runit. From what I understand, monit is capable of starting and
> > > stopping processes and services, so I'm wondering:
> > >
> > > Why is runit used to start services when monit can also do it?
> > >
> >
> > Just to clarify: It seems to me that mongrels can be kept alive with:
> > monit -> mongrel_cluster
> >
> > Rubyworks is doing (as far as I can tell):
> > monit -> runit -> mongrel_cluster
> >
> > Why is this? I also came over a year old blog post that describes
> > monit and mongrel_cluster without any runit:
> > http://software.pmade.com/blogs/ramblings/2006/12/27/mongrel-cluster-and-monit
> >
> > Aslak
> >
> >
> > > Aslak
> > >
>
> > _______________________________________________
> > Rubyworks-users mailing list
> > Rubyworks-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rubyworks-users
> >
>
>
>
> --
> Jeff Xiong
> Software Journeyman - http://gigix.thoughtworkers.org
> Open Source Contributor - http://stomperl.googlecode.com/
> Technical Evangelist - http://www.infoq.com/cn/
> _______________________________________________
> Rubyworks-users mailing list
> Rubyworks-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubyworks-users
>
More information about the Rubyworks-users
mailing list