What settings for maximum speed on a large configuration ?
I've recently installed litespeed on our pre production server and when I get all the issues sorted out I will be transfering quite alot of accounts from a smaller server running Apache to this new server.
I've read in various places that setting some options too high will slow things down instead of speeding things up.
Our customers host various scripts (Wordpress, Joomla, PhpBB, vBulletin, IPB and also custom scripts, some better optimised then others).
We're aiming at getting the best performance and stability for our customers websites.
Our server has got 256GB of RAM and 32 * 3.1GHz threads.
I've already activated and configured Xcache 3.0.1 and allowed it 1GB of cache space…
I've run some tests and seem to be getting 503 error messages when there are too many processes being run. By upping LSAPI Max connections and LSAPI_Children from 35 to 400 most of the errors have gone.
I want this server to be able to cope with a large number of simultaneous requests and serve each of them quickly. I want to try and get the configuration right before migrating the accounts to it.
Can you guide me to have the right settings for maximum performance and maximum number of processes ? Shoud I pay to have you configure these settings ? Can you do this with only a few customers on the server ?
I've been monitoring the performance of a small php script with echo "hello world" from different locations and have been getting spikes every now and again.
Most of the time the scripts download in 15 to 17ms and then every now and again the latency goes over 500ms…
This server has only got a few medium traffic sites on it so it should be stable and have regular latency times. I'm worried that if I get 503 errors and latency spikes what it will be like with 700 or 800 accounts on the server.
The server load is always below 1.5 for the mement, this includes MySQL and other services so I don't think I'm being limited by the 2 Core test licence… am I ?
Or have a NAS shared by two servers ?
Or something else ?
We would have to test the speed to see what the extra network would add…
I'm not sure about a reliability difference as if you don't also have the web server then the PHP scripts alone won't be and it seems that you would be adding another point of failure unless you can automaticaly share all PHP processes between both servers.
The first thing we would move would by MySQL to create a multiple server cluster. We've alread clustered DNS servers but that doesn't use much ressources.
The server we're currently trying to get running smoothly with litespeed has more than 5 times CPU than our previous server and 10 times more memory so with the right software and settings we should be able to hold out quite some time on the new server configuration.
If you're using a NAS for the files, why not go the whole way with a load balancer ?
I've read the article, I'm getting 503 error messages and have actived core dumps but am not getting core dumps when I get the 503 error message.
I've checked my logs and it seems to happen when /scripts/restartsrv_httpd is run.
I'm watching to see if this is the problem, if it is I will ask you for some advice about making this script do a gracefull restart of litespeed instead of completly restarting litespeed and all php children.
cPanel runs this script by default for each account when it rotates logs so it's important that litespeed is reloaded without causing 503 errors.
Here is the type of errors I'm seeing :
2013-01-22 08:22:42.168 [INFO] [XX.XX.XX.XX:51376-1#APVH_my_domain.com] connection to [uds://tmp/lshttpd/lsphp5.sock.687671] on request #0, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!
2013-01-22 08:22:42.175 [INFO] [XX.XX.XX.XX:51376-1#APVH_my_domain.com] connection to [uds://tmp/lshttpd/lsphp5.sock.687671] on request #0, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!
2013-01-22 08:22:42.183 [INFO] [XX.XX.XX.XX:51376-1#APVH_my_domain.com] connection to [uds://tmp/lshttpd/lsphp5.sock.687671] on request #0, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!
2013-01-22 08:22:42.183 [NOTICE] [XX.XX.XX.XX:51376-1#APVH_my_domain.com] Max retries has been reached, 503!
2013-01-22 08:22:42.183 [NOTICE] [XX.XX.XX.XX:51376-1#APVH_my_domain.com] oops! 503 Service Unavailable
Ok I've been watching the server logs all morining. I've had multiple error 503's and everytime a second or too before I have something like this :
What can I do to stop this from happening ?
graceful restart will cause 503 error --- this is a good point, and new to me. usually 503 error is random and not easy to reproduce. not sure if you can work out a simple test case which we can reproduce it in our lab so we can proceed.
I'll have to check my logs, but I was wandering if the restart wasn't a symptom instead of a cause.
Could it be PHP hitting litespeed's CPU limit ?
I upped it from the default 80% to 800% yesterday but haven't had a chance to check the logs yet.
I get a 503 error when litespeed can't access PHP. Over the last 20 times in the past two days users got 503 errors I see litespeed doing a gracefull restart then a few seconds later litespeed says it tried to access PHP 3 times and didn't get an answer so it shows a 503 error message.
I'll check later today and see if the new CPU limit has solved the 503 error messages or not
Here is a section of the logs :
First : "[NOTICE] Server Restart Request via Signal..."
Second : "[Child: XXXXX] Start shutting down gracefully ..." third the "[NOTICE] New litespeed process is ready, litespeed (582325) stops listeners"
Then "[INFO] [IPCIENT2.XX.XX.XX:34556-16#APVH_domain.tld:lsapi] connection to [uds://tmp/lshttpd/lsphp5.sock.XXXXX] on request #0, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!"
And finaly "[NOTICE] [IPCIENT1.XX.XX.XX:34558-8#APVH_domain.tld] Max retries has been reached, 503!"
searched out a related thread:
looks the restart not from graceful restart, but from cPanel.
|All times are GMT -7. The time now is 01:48 PM.|