Project

General

Profile

Fastcgi processes

Added by aeGoor over 15 years ago

I started with lighttpd today and I managed to setup fastcgi correctly but lighttpd doesn't seem to behave correctly. I'm using ubuntu karmic's lighttpd 1.4.22.

I've got a couple of memory intensive python fastcgi scripts which should only run a few minutes if they are needed but lighttpd never seems to kill any process.

My setup looks this:

fastcgi.server = (
    "/fcgi.loggerhead" => (
        (
            "socket" => "/tmp/lighttpd.loggerhead.fcgi",
            "bin-path" => "/etc/lighttpd/cgi/loggerhead.fcgi",
            "docroot" => "/srv/bzr",
            "min-procs" => 0,
            "max-procs" => 4,
            "idle-timeout" => 10
        )
    )
)

Any ideas?

Thanks


Replies (3)

RE: Fastcgi processes - Added by nitrox over 15 years ago

min-procs has gone and is not avail. anymore, its just there for compatibility reasons, so that your config doesn´t throw an error. So what you are looking for is adaptiv-spawning, which isn´t supported anymore (support gone looong time ago, i think there was sth. on the blog).

RE: Fastcgi processes - Added by aeGoor over 15 years ago

Well the documentation should definitely be updated in that case. Lighttpd's documentation of the mod_fastcgi (tarball: doc/fastcgi.txt) doesn't give any hint adaptive spawning is obsolete nowadays. On the contrary there's an example of how to use it.

Adaptive Process Spawning
=========================

Starting with 1.3.8 lighttpd can spawn processes on demand if
a bin-path is specified and the FastCGI process runs locally.

If you want to have a least one FastCGI process running and
more of the number of requests increases you can use min-procs
and max-procs

...

RE: Fastcgi processes - Added by nitrox over 15 years ago

How many php CGI processes will lighttpd spawn?¶

lighttpd has three configuration options that control how many php-cgi processes will run:

    * PHP_FCGI_CHILDREN (defaults to 1)
    * max-procs (default 4)
    * min-procs is completely ignored in recent lighttpd releases (there is no adaptive spawning anymore)
...

See FrequentlyAskedQuestions - we assume using the wiki as documentation base. The files included will be updated, thx for the hint.

    (1-3/3)