Litespeed + cPanel + Cloudlinux

#2
Litespeed should work on CloudLinux out of the box.
Yet, to get the benefit of LVE (ability to control amount of CPU the site can use) -- small changes needs to be added to the CGI/FastCGI part of the server.

It is virtually 10-20 lines of code that needs to be added -- but without them -- you will not get full benefit of CL.

Best Regards
Igor Seletskiy
CEO @ Cloud Linux Inc
 
#4
Good to see you here Igor, I'm an old hsphere user

I'm going to open a feature request to see if Litespeed can add full support for Cloudlinux

Thank You
Thanks a lot :) Good to see you as well. I am looking forward working with Litespeed company & community. I think this web server rocks.
 

Tony

Well-Known Member
#5
Reading up on this sounds very interesting that's for sure. It actually sounds a lot like what Matt from bluehost was bragging about as far as kernel changes they made resulting in shared hosting separation.
 

optize

Well-Known Member
#8
This is exactly what BlueHost brags about.

I've been waiting until LS can support this so we can move all of our servers to CloudLinux.
 

optize

Well-Known Member
#13
Has anyone had any luck yet? We moved to the cloudlinux kernel and updated our LS to the new version, yet lveps doesn't show any processes.
 

optize

Well-Known Member
#15
DataOne has positive feed back on this.
Anything in the stderr.log, if LVE detected, it will log something into stderr.log.
I'm sure it's something on my end;

2010-04-06 14:06:24.157 [STDERR] lscgid (31414) LVE initialized !
2010-04-06 14:06:24.716 [STDERR] lscgid (31437) LVE initialized !
2010-04-06 14:07:01.565 [STDERR] lscgid (31516) LVE initialized !
2010-04-06 14:07:02.125 [STDERR] lscgid (31539) LVE initialized !
2010-04-06 14:07:24.143 [STDERR] lscgid (31613) LVE initialized !
2010-04-06 14:07:24.703 [STDERR] lscgid (31635) LVE initialized !
2010-04-06 14:07:29.628 [STDERR] lscgid (31735) LVE initialized !
2010-04-06 14:07:30.243 [STDERR] lscgid (322) LVE initialized !
2010-04-06 14:09:05.836 [STDERR] lscgid (445) LVE initialized !
2010-04-06 14:09:06.396 [STDERR] lscgid (468) LVE initialized !

root@cp09 [/usr/local/apache/logs]# lveps
LVE REF PNO TNO UID GID CPU MEM I/O
root@cp09 [/usr/local/apache/logs]#
 

optize

Well-Known Member
#17
LVE is detected. Are you using PHP suEXEC? right now, only PHP in suEXEC mode put into LVE.
Yep.

riopco 8975 0.0 0.3 136572 28532 ? R 14:42 0:00 lsphp5:e/riopco /public_html/prr.com/index.php
riopco 8975 0.0 0.4 140404 32680 ? R 14:42 0:00 lsphp5:emr.com/wordpress2/wp-admin/admin-ajax.php
 
#18
It works but I think there is something wrong

looks like no all process are running inside lve's

If I switch to apache and restart LVE I can see a lot of LVE's with cat /proc/lve/list and also I can see how fast those LVE update their cpu statistics, when I switch back to litespeed and restart LVE I can see some LVE after a while and they don't upgrade their cpu usage even while I'm visiting some heavy php sites in the server.

mistwang I can give you access to the box if you want to take a look
 
#20
Looks like is working now !

Is easy to get the top ten cpu eaters:

# cat /proc/lve/list|sort -r -n -k5|head -10
1485 3 100 100 1356112822722
824 2 100 100 230866736639
526 3 100 100 150523405592
1231 2 100 100 90540145514
927 2 100 100 89125989547
719 2 100 100 86946923203
633 3 100 100 69499024119
1218 2 100 100 24445937978
1411 2 100 100 19176211971
872 2 100 100 18148676133

The big number is cpu usage but I don't know in what units is that, I guess is not cpu time in seconds :p
 
Top