multiple fastcgi ?

Igor Sysoev is at rambler-co.ru
Mon Jul 23 23:04:15 MSD 2007


On Mon, Jul 23, 2007 at 06:17:22PM +0200, Brice Figureau wrote:

> I'm sorry if my question is not stricly nginx related.
> 
> I have to deploy a fastcgi based application (trac for that matters).
> I'd like to deploy it as a fastcgi directly under nginx instead of
> behind a proxyied upstream apache running mod_fastcgi.
> 
> It seems that the nginx way to do that is to use lighttpd's spawn-fcgi,
> is that right ?
> 
> The problem I see with this setup is that spawn-fcgi spawn's only one
> process, so  I don't see how several parallel requests to the cgi can be
> executed at the same time ?
> 
> mod_fastcgi under apache seems to spawn several fastcgi process at
> server start certainly to overcome this issue. The PHP fastcgi handler
> also is doing that.
> Lighttpd can also do that apparently if it spawn's directly the
> processes (not using the spawn-fcgi program).
> 
> Is there any known workaround ?

As I know spawn-fcgi does not allow to spawn several processes.
As workaround you may try to run several tracs on several ports
adn use "upstream".


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list