[Rails] How do you up the FCGI timeout setting?

Tobias Luetke tobias.luetke at gmail.com
Wed Jan 5 05:16:35 GMT 2005


Just adding to this. For ruby apps on production servers i would add
-restart -initial-env RAILS_ENV=production to the FastCgiConfig
directive. Especially -restart seemed to have fixed a lot of fastcgi
quirks with applications which where never started again after a
crash.


On Tue, 4 Jan 2005 19:52:47 -0800, Jason Hoffman
<jason at one.textdrive.com> wrote:
> On Jan 4, 2005, at 7:35 PM, Lars Pind wrote:
> > David wrote about watching the timeout for FCGI:
> > http://weblog.rubyonrails.com/archives/2005/01/03/watch-for-huge-
> > requests-on-default-fcgi/#comments
> > But where's the setting? Is it in the apache config file, in Rails
> > somewhere, or?
> >
> > /Lars
> >
> 
> I don't know what they're using but here's how I config it for PHP and
> Ruby dynamic apps in Apache2
> 
> <IfModule mod_fastcgi.c>
> FastCgiIpcDir /usr/local/www/fcgi_ipc/tmp
> AddHandler fastcgi-script .fcgi
> FastCgiSuexec /usr/local/sbin/suexec
> FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate
> -idle-timeout 120 -pass-header HTTP_AUTHORIZATION
> </IfModule>
> 
> That's at least the FastCGI config for textdrive.com (PHP5-fastcgi),
> rubyonrails.org (PHP4-fastcgi and Ruby), standardbehaviour.com (Ruby)
> and wordpress.org (PHP5-fastcgi) ....
> 
> At least I'm assuming that David's using fcgi for
> manuals.rubyonrails.org, I know Marten is using it for
> standardbehaviour.com.
> 
> - Jason
> 
> 
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 


-- 
Tobi
http://www.hieraki.org   - Open source book authoring
http://blog.leetsoft.com - Technical weblog


More information about the Rails mailing list