Litespeed + cPanel + Cloudlinux

Discussion in 'General' started by DataOne, Mar 13, 2010.

  1. DataOne

    DataOne New Member

  2. iseletsk

    iseletsk New Member

    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
  3. DataOne

    DataOne New Member

    Last edited: Mar 14, 2010
  4. iseletsk

    iseletsk New Member

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

    Tony Member

    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.
  6. mistwang

    mistwang LiteSpeed Staff

    The LVE is a interesting feature. We can add some code to support that.
  7. DataOne

    DataOne New Member

    Great news!

    I'm sure Litespeed + Cloudlinux will be a great mix
  8. optize

    optize New Member

    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.
  9. tina

    tina Member

    Does LiteSpeed work with CloudLinux now?
  10. mistwang

    mistwang LiteSpeed Staff

    Any one want to give it try please contact bug@litespeedtech... for test driving of 4.0.14 with CloudLinux LVE support.
  11. DataOne

    DataOne New Member

    It was my request :D so I'm ready to take the first shot

    email sent !
  12. mistwang

    mistwang LiteSpeed Staff

    For anyone who want to try it. 4.0.14 package has been uploaded, just change version number in the download link to get it.
  13. optize

    optize New Member

    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.
  14. mistwang

    mistwang LiteSpeed Staff

    DataOne has positive feed back on this.
    Anything in the stderr.log, if LVE detected, it will log something into stderr.log.
  15. optize

    optize New Member

    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]#
  16. mistwang

    mistwang LiteSpeed Staff

    LVE is detected. Are you using PHP suEXEC? right now, only PHP in suEXEC mode put into LVE.
  17. optize

    optize New Member

    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. DataOne

    DataOne New Member

    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
  19. mistwang

    mistwang LiteSpeed Staff

    Please download and update again, should be addressed.
  20. DataOne

    DataOne New Member

    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

Share This Page