Minimize startup timeout on dynamic fastcgi
Eugene <my-subscr-JGs/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I'm experimenting with Apache2 + FastCGI + Suexec + PHP5. After the hard struggle all works well :) But there's one problem. Dynamic fastcgi server is starting too slow - it takes about 4-5 seconds to start. Of cource, speed increase can compensate this, but speed of first page load is important for users. The situations is the same after process restart - time lag about 4-5 sec occurs. I looked at the top and see 2 processes for one site. Unfortunately, these processes start and die simultaneousely :( So they cannot solve lag in the middle problem. 1) How is it possible to monimize this startup lag? Or maybe launch fastcgi-server instances with time shift about 10-20 seconds. It will minimize peak load during startup, and also will save from lag during restart because of the time overlapping. 2) Is it possible to use static servers? If number of hosts is big (about 100's) they will eat all the memory without much result, and will go to swap. So I think on loaded servers static will not give much benefit due to the memory consumption and working in vain, while nobody askes the site. Thank you! Eugene ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/