Re: concurrent connections and multiple accepts
Tim Wood <timwood0-yBeKhBN/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <5.2.1.1.1.20050617072959.02107ee0@mailhost> |
At 01:27 AM 06/17/05, Barclay Curtis wrote: >>FCGI provides for multiple concurrent instances of the FCGI app., adding processes as load goes up > >Do I have to code something specific to get fast cgi to add processes? No, just configure it in httpd.conf. It's all documented. >Currently: >If I have only one instance (child) of my FCGI appserver running (so effectively one fcgi external server) and I look at page A >on my site which has a 20 second sleep in it. Then I look at page B (which is just a normal kinda page, no delays). >Page B wont load until page A has finished. Does this not mean that they are using the same process? No. (A 20 sec. sleep in a CGI sounds strange; CGIs need high throughput. I'd look at whether you really need to do that.) >How does FCGI determine when it needs to add a new process? Roughly, if all the current processes are busy. i.e. are running within the accept() loop, the process manager starts a new one, up to a configured limit. RTFM. TW ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/