Score:0

nginx and fcgiwrap - one response per IP?

in flag

I found this comment:

There is one "feature" to watch out for in a nginx + fastcgi setup. A given PHP script will only run once for a given IP. So, if the same IP loads index.php for a website twice at the same time, index.php will be served sequentially: The second index.php load will not be processed until the first index.php load is complete.

On this page: https://www.samiam.org/blog/20110702.html

Is this true? I couldn't find any other reference to this "feature".

I am wondering if I am hitting this feature, and if it can be configured?

I have a CGI program and want to run it using fcgiwrap and nginx. It is a long running but lightweight process, with a limited number of maximum hits possible due to limited number of clients.

The same client may issue multiple requests in parallel. This should be allowed, and processed in parallel.

It is behind an nginx proxy (no buffering), which forwards on to a second nginx server.

I've set FCGI_CHILDREN=200 in /etc/default/fcgiwrap and yet I only ever see one process executed at once.

djdomi avatar
za flag
did you read the Date, its from 2011 and i belive its outdated.
in flag
I would like to think it is out of date, but it still doesn't seem to want to run more than one process at a time...
djdomi avatar
za flag
do you have a special requirement or question to be solved?
in flag
Well, yes, the current advice is to just increase FCGI_CHILDREN and multiple requests can be processed in parallel. But I'm not seeing that. I've switched to Lighttpd, which works as expected.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.