A potentially dumb SCGI question here... I am trying out SCGI. It''s a great departure from the complexity of FastCGI. Anyway, with FCGI I am used to seeing multiple dispatcher.fcgi processes in my ''ps aux'' output. With SCGI I see only a single entry. I assume then that SCGI is doing internal threading instead of process forking? The only thing that threw me is that with FCGI I would see multiple database connections open and I only see a single connection with my SCGI setup. Did I miss a flag to have multiple listeners? Looking at the doco, I didn''t see anything. If anyone has any info, it is appreciated. Cheers.
Hi ! 2005/12/9, Hunter's Lists <lists@lastonepicked.com>:> A potentially dumb SCGI question here...Nope, never. What you want is an SCGI cluster. Works mostly the same way, except you replace scgi_ctrl with scgi_cluster. Configuration example: scgi_cluster config -c 3 -e production -p 2049 -h 127.0.0.1 Configure 3 children (-c 3) in production environment (-e production), listening on consecutive ports starting at 2049 (-p 2049), and bind only on 127.0.0.1 (-h 127.0.0.1). Then, you start the cluster like this: scgi_cluster start Hope that helps ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Excellent! I did see that in the documentation. Now, on to my next question - do I have to change my Apache 2 config? I have a single SCGIMount directive: SCGIMount / 127.0.0.1:9999 Do I need to do anything to tell Apache to hand off to the extra instances? Thanks again, Hunter> From: Francois Beausoleil <francois.beausoleil-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Reply-To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Date: Fri, 9 Dec 2005 20:33:05 -0500 > To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: Re: [Rails] SCGI and Concurrency > > Hi !2005/12/9, Hunter''s Lists <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org>:> A potentially > dumb SCGI question here...Nope, never. What you want is an SCGI> cluster.Works mostly the same way, except you replace scgi_ctrl with> scgi_cluster.Configuration example: scgi_cluster config -c 3 -e production> -p 2049 -h 127.0.0.1Configure 3 children (-c 3) in production environment> (-e production),listening on consecutive ports starting at 2049 (-p 2049),> and bindonly on 127.0.0.1 (-h 127.0.0.1). Then, you start the cluster like> this:scgi_cluster start Hope that helps ! -- François> Beausoleilhttp://blog.teksol.info/> _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Hi ! 2005/12/9, Hunter's Lists <lists@lastonepicked.com>:> Now, on to my next question - do I have to change my Apache 2 config?Eh, I have the same problem. Seems Apache does not play well with SCGI clusters... See the thread entitled "SCGI cluster configuration example for Apache". I can't provide you with a link, unfortunately, because I can't find it in the gmane archive... There were two solutions in there. Haven't tried any of them yet. Bye ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Yeah, I can''t find the thread either... Does anyone have a link?> From: Francois Beausoleil <francois.beausoleil-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Reply-To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Date: Fri, 9 Dec 2005 22:46:18 -0500 > To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: Re: [Rails] SCGI and Concurrency > > Hi !2005/12/9, Hunter''s Lists <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org>:> Now, on to my > next question - do I have to change my Apache 2 config?Eh, I have the same> problem. Seems Apache does not play well withSCGI clusters... See the> thread entitled "SCGI cluster configurationexample for Apache". I can''t> provide you with a link, unfortunately,because I can''t find it in the gmane> archive...There were two solutions in there. Haven''t tried any of them> yet.Bye ! -- François Beausoleil http://blog.teksol.info/> _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
2005/12/10, Hunter''s Lists <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org>:> Yeah, I can''t find the thread either... > > Does anyone have a link?Here it is : http://article.gmane.org/gmane.comp.lang.ruby.rails/33836
Thanks. So, is anyone using this method or using an SCGI cluster with Apache 2? Does this uber hack work? Hunter> From: Jonathan Lemien <jonathan.tron.mailings-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Reply-To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Date: Sun, 11 Dec 2005 09:21:29 +0100 > To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: Re: [Rails] SCGI and Concurrency > > 2005/12/10, Hunter''s Lists <lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org>: >> Yeah, I can''t find the thread either... >> >> Does anyone have a link? > > Here it is : http://article.gmane.org/gmane.comp.lang.ruby.rails/33836 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails