LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Feedback/Feature Requests (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=10)
-   -   Not to stop FCGI apps while reloading LSWS (http://www.litespeedtech.com/support/forum/showthread.php?t=263)

Roman2K 10-12-2005 11:35 AM

Not to stop FCGI apps while reloading LSWS
 
Hello,

By using LSWS, I found that when I reload LSWS executing /opt/lsws/bin/lswsctrl reload makes my FCGI apps having to restart on the next request. As it takes some time to start my FCGI app (a RoR app), this delay is annoying after each reloading since I often must reload the config of LSWS to take the config changes in account. Is it possible to make reloading the config not to affect the FCGI app which are not concerned by the config changes ?

I am also wondering whether FCGI apps are running all the time waiting for requests or not ? For example if I have 10 vhosts witch each a FCGI app context for the URI "/", will the 10 apps be in memory waiting for visitors to request web pages ? Does LSWS do something to optimize memory usage with several (tens, hundreds or thousands...) vhosts with each his FCGI app, all stuff running on the same computer ?

Thank you in advance,
Best Regards,
Roman.

mistwang 10-12-2005 11:57 AM

If you want that, you have to start FCGI application manually with a FCGI spawner.

LSWS will start FCGI apps on demand, but did not stop them when there is no request to process. Maybe we will add a feature to stop unused FCGI app. Some FCGI apps exit after handling certain number of requests.

LSWS did not do anything special in FCGI process management for mass hosting environment yet, but we will do if there is enough interest in using LiteSpeed in this kind of environment.

Right now, we recommend LSAPI over FCGI when possible, LSAPI has better process management in nature.

Roman2K 10-12-2005 12:05 PM

Ok, thank you for the useful answer 8).

Quote:

LSWS did not do anything special in FCGI process management for mass hosting environment yet, but we will do if there is enough interest in using LiteSpeed in this kind of environment.
I am interested in LSWS for a mass hosting environment (that's why I previously asked about FCGI apps stopping/starting).

Can you estimate a number of FCGI apps per an amount of memory as unit -- recommended to keep the server running well, please ?

mistwang 10-12-2005 12:13 PM

Quote:

Can you estimate a number of FCGI apps per an amount of memory as unit -- recommended to keep the server running well, please ?
it really hard to say, and it depends on how much memory a FCGI app uses and number of FCGI app required. Anyway, there should be at least 15-20% free memory for OS cache and file buffering, using swap memory should be avoid.

Roman2K 10-12-2005 01:21 PM

Thanks one more time, mistwang :D.


All times are GMT -7. The time now is 09:45 AM.