Welcome! Log In Create A New Profile

Advanced

Re: Launch FastCGI process?

Phillip Oldham
October 21, 2009 03:44AM
jlist9 wrote:
> Hi Igor,
>
> In fact, if it's integrated it is already better :-)
>
> Although lighttpd has the spawn-fcgi tool, it still integrates this
> functionality into lighttpd itself and this makes setting up simple
> servers and managing them a lot more easier!
>
AFAIK lighty just "talks" to the spawnfcgi daemon. Nginx could maybe do
the same with a plugin, but it wouldn't be managing the fastcgi
processes itself.
> As a matter of fact, I don't quite understand why the replies so far are mostly
> negative about integrating a nice feature into nginx. I think a lot of lighttpd
> users are using this feature and like it a lot. It's only an option in lighttpd
> and you don't have to use it. Phillip mentioned that if a child process is
> bad it may bring down the web server. I have never seen this myself.
>
I had this issue consistently while using lighttpd+spawnfcgi+PHP5.
PHP+spawnfcgi would leak memory slowly filling out what was available,
and lighty would balk when a connection couldn't be made or a response
wasn't returned correctly. This was a couple of years ago now; things
might've changed. I remember plastering the boards and even emailing Jan
directly with no results. Nginx had just made some headlines, so I
switched. We now use it on 6 production servers with PHP, Python, and
Java backends and haven't had *any* problems that weren't down to silly
misconfigurations (on my part - resolved with help from this amazing
maillist!).
> What I have seen is, if the fcgi process throws an exception and exits,
> lighttpd automatically starts another one. How nice! I really hope nginx
> does it, too!
>
Well, no - nginx doesn't do anything about it other than capture the
error and move on. That's the job of the process manager. Its the same
in lighttpd; spawnfcgi manages the fcgi processes, not lighttpd. All
you're doing is swapping spawnfcgi for supervisord (or God, or
whatever). As Roger mentions, the reason to use a process manager is to
separate concerns. Nginx is concerned with serving content (either from
disk or from an upstream), process managers are concerned with keeping
processes running. Its part of the unix philosophy: "Write programs that
do one thing and do it well."
Subject Author Posted

Launch FastCGI process?

jlist9 October 20, 2009 04:30AM

Re: Launch FastCGI process?

Phillip Oldham October 20, 2009 05:58AM

Re: Launch FastCGI process?

Denis F. Latypoff October 20, 2009 06:14AM

Re: Launch FastCGI process?

jlist9 October 20, 2009 08:32PM

Re: Launch FastCGI process?

Roger Hoover October 20, 2009 08:58PM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:42AM

Re: Launch FastCGI process?

Igor Sysoev October 20, 2009 09:20AM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:50AM

Re: Launch FastCGI process?

Johan Bergström October 21, 2009 02:20AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 03:44AM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:30PM

Re: Launch FastCGI process?

jlist9 October 21, 2009 01:30PM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 02:14PM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 02:54AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 03:44AM

Re: Launch FastCGI process?

Kiswono Prayogo October 21, 2009 04:06AM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 04:24AM

Re: Launch FastCGI process?

Phillip Oldham October 21, 2009 04:38AM

Re: Launch FastCGI process?

Grzegorz Nosek October 21, 2009 04:48AM

Re: Launch FastCGI process?

Roger Hoover October 21, 2009 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready