Apologizes in advance if this sounds rather dense, but I want to make sure I''m understanding everything correctly. We''re in the process of migrating from Apache2.0/FastCGI to Apache2.0+mongrel (why not 2.2? that story is too long and too uninteresting to recount here, but I will tell you that it involves RHEL and only using RHN rpms). The init script that comes with mongrel (when configured correctly for your system) will act on each app that you configure in /etc/mongrel_cluster/. So, at system boot all of your configured clusters will start. The cap recipes will only act on the cluster for that particular app. So, a restart will only restart that cluster and not all configured clusters. Thanks, Pat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070209/f5077fd9/attachment.html
On Feb 9, 2007, at 2:37 PM, Patrick Berry wrote:> Apologizes in advance if this sounds rather dense, but I want to > make sure I''m understanding everything correctly. We''re in the > process of migrating from Apache2.0/FastCGI to Apache2.0+mongrel > (why not 2.2? that story is too long and too uninteresting to > recount here, but I will tell you that it involves RHEL and only > using RHN rpms). > > The init script that comes with mongrel (when configured correctly > for your system) will act on each app that you configure in /etc/ > mongrel_cluster/. So, at system boot all of your configured > clusters will start. > > The cap recipes will only act on the cluster for that particular > app. So, a restart will only restart that cluster and not all > configured clusters. > > Thanks, > PatHi Pat, How are you going to put more than one mongrel behind Apache 2.0? Regards, Jason
On 2/9/07, Jason A. Hoffman <jason at joyent.com> wrote:> > Hi Pat, > > How are you going to put more than one mongrel behind Apache 2.0? > > Regards, JasonOur apps are, at first, going to be very low traffic. So we''re planning on doing virtual hosts with a ProxyPass setup to a mongrel_cluster only running one server in each one (negating the need for mod_proxy_balancer or pen). We thought about putting pen in the mix but decided by the time we have enough requests to make us add more mongrels, we''ll have Apache 2.2 (and thus mod_proxy_balancer). It''s a bit of a cop-out, but these are all administrative apps at a higher-ed institution, typically with 10 or fewer users, and we want to keep things as simple as possible and yet as automated as possible. Pat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070209/23f9469f/attachment.html
> > How are you going to put more than one mongrel behind Apache 2.0? >In case anyone is interested, I ran into this article the other day that shows how you can run multiple mongrels behind apache 2.0 http://times.usefulinc.com/2006/09/13-mongrel-apache20 Regards, Steven
Hey alright, nice and simple, can anyone else confirm this works decently? If so, I''ll toss it up on the Apache documents on mongrel.rubyforge.org.... On 2/9/07, Steven Hansen <codeturkey at comcast.net> wrote:> > > > > How are you going to put more than one mongrel behind Apache 2.0? > > > > In case anyone is interested, I ran into this article the other day that > shows how you can run multiple mongrels behind apache 2.0 > > http://times.usefulinc.com/2006/09/13-mongrel-apache20 > > Regards, > Steven > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.com main: 678.389.9462 fax: 678.826.0969 Ruby on Rails Bootcamp at the Big Nerd Ranch Intensive Ruby on Rails Training: http://www.bignerdranch.com/classes/ruby.shtml
Looks like a nice idea. One thing I wonder, just looking at it, is if it wouldn''t redirect to all the configured ports, even if the mongrel on one of those ports had died. I''m pretty sure the load balancer in apache 2.2 would be smart enough to not forward to a port that stopped responding, but it looks like this would continue doing so. Can anyone confirm this? Of course, you could work around this limitation by using monit or something similar to make sure that all the mongrels that are supposed to be running, get restarted if they ever need to be. Just something to keep in mind. -- Wes Sheldahl wes.sheldahl at gmail.com On 2/10/07, Charles Brian Quinn <me at seebq.com> wrote:> > Hey alright, nice and simple, can anyone else confirm this works decently? > > If so, I''ll toss it up on the Apache documents on mongrel.rubyforge.org... > . > > On 2/9/07, Steven Hansen <codeturkey at comcast.net> wrote: > > > > > > > > How are you going to put more than one mongrel behind Apache 2.0? > > > > > > > In case anyone is interested, I ran into this article the other day that > > shows how you can run multiple mongrels behind apache 2.0 > > > > http://times.usefulinc.com/2006/09/13-mongrel-apache20 > > > > Regards, > > Steven > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > -- > Charles Brian Quinn > self-promotion: www.seebq.com > highgroove studios: www.highgroove.com > slingshot hosting: www.slingshothosting.com > main: 678.389.9462 fax: 678.826.0969 > > Ruby on Rails Bootcamp at the Big Nerd Ranch > Intensive Ruby on Rails Training: > http://www.bignerdranch.com/classes/ruby.shtml > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070216/f11adf53/attachment.html
I have to admit I''m a tiny bit worried about this, and I''m eagerly awaiting our migration to RHEL 5 (if it ever comes out...). One thing that I think will help is that part of our log rotation is to restart the cluster at night. A nightly cluster restart might not be an acceptable option for everyone though. Sometimes working in higher-ed has advantages... On 2/16/07, Wes Sheldahl <wes.sheldahl at gmail.com> wrote:> Looks like a nice idea. One thing I wonder, just looking at it, is if it > wouldn''t redirect to all the configured ports, even if the mongrel on one of > those ports had died. I''m pretty sure the load balancer in apache 2.2 would > be smart enough to not forward to a port that stopped responding, but it > looks like this would continue doing so. Can anyone confirm this? > > Of course, you could work around this limitation by using monit or something > similar to make sure that all the mongrels that are supposed to be running, > get restarted if they ever need to be. Just something to keep in mind. > > -- > Wes Sheldahl > wes.sheldahl at gmail.com > > > On 2/10/07, Charles Brian Quinn < me at seebq.com> wrote: > > Hey alright, nice and simple, can anyone else confirm this works decently? > > > > If so, I''ll toss it up on the Apache documents on > mongrel.rubyforge.org.... > > > > On 2/9/07, Steven Hansen <codeturkey at comcast.net> wrote: > > > > > > > > > > > How are you going to put more than one mongrel behind Apache 2.0? > > > > > > > > > > In case anyone is interested, I ran into this article the other day that > > > shows how you can run multiple mongrels behind apache 2.0 > > > > > > http://times.usefulinc.com/2006/09/13-mongrel-apache20 > > > > > > Regards, > > > Steven > > > _______________________________________________ > > > Mongrel-users mailing list > > > Mongrel-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > > > > > -- > > Charles Brian Quinn > > self-promotion: www.seebq.com > > highgroove studios: www.highgroove.com > > slingshot hosting: www.slingshothosting.com > > main: 678.389.9462 fax: 678.826.0969 > > > > Ruby on Rails Bootcamp at the Big Nerd Ranch > > Intensive Ruby on Rails Training: > > http://www.bignerdranch.com/classes/ruby.shtml > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > > > > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >