Litespeed + cPanel + Cloudlinux

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

  1. tina

    tina Member

    That is good news indeed.
  2. iseletsk

    iseletsk New Member

    The big numbers are jiffies (Within the Linux 2.6 operating system kernel, since release 2.6.13, on the Intel i386 platform a jiffy is by default 4 ms, or 1/250 of a second. The jiffy values for other Linux versions and platforms have typically varied between about 1 ms and 10 ms.) spent by CPU on all the processes within LVE.

    lveps -d would give you usage in percentage on per LVE bases.
  3. optize

    optize New Member

    I'm not convinced this is working correctly.

    Perhaps this is just the way CL works, since I haven't used it on Apache, it's hard to tell.

    Should it be rate limiting these processes so they don't appear over the x value of CPU? My value is set at 25%, yet top still shows people at 60%

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    26834 rixxopco 16 0 129m 24m 6508 S 60.5 0.3 0:02.17 lsphp5
  4. iseletsk

    iseletsk New Member

    We are not limiting individual processes, but all of them together, for a site.
    Could you show me what lveps -d shows?
    Also, what are you settings in /etc/container/ve.cfg and how many cores does your server have?
  5. optize

    optize New Member

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    27330 elvisman 15 0 123m 24m 6048 S 36.9 0.3 0:00.19 lsphp5

    root@cp08 [~]# lveps -d | grep elvis
    652 1 1 1elvismanelvisman 0% 18556 N/A
    root@cp08 [~]#

    top says 36%, lveps says 0% ?
  6. iseletsk

    iseletsk New Member

    What does this script do? How are you testing it? Are you hitting some PHP script all the time?
    TOP shows CPU usage since process starts
    lveps shows the usage during the last few seconds
  7. optize

    optize New Member

    This is a live web server, just going off of what's being served.
  8. iseletsk

    iseletsk New Member

    It is possible that the site is not serving dynamic content right now -- and that is why you see 0 for cpu usage
    if you run lveps -- it will show you the number of jiffies (cpu ticks) spent by lve to serve that site.
    Also, could you do lveps -p
    and see if that process (isphp5) is in LVE? It is possible that only its children are.
  9. optize

    optize New Member

    Emailed you the info, as it was too large to post.
  10. anewday

    anewday Moderator

    Interesting, I might give it a shot on a brand new server later. :cool:
  11. tina

    tina Member

    How do we get the WHM plugin to upgrade LiteSpeed to 4.0.14?
  12. tina

    tina Member

    The Version Management page of the LiteSpeed web admin does not show an upgrade link to 4.0.14, only a Force Reinstall link. We are running 4.0.13. Any ideas?
  13. NiteWave

    NiteWave Administrator

    The upgrade link will be enabled after a few days. Sometimes this can catch possible serious bug before upgrade widely.
  14. tina

    tina Member

    Ah, that makes sense. Thanks!
  15. optize

    optize New Member

    Is there a way to disable cloudlinux via litespeed? Comment out a module?
  16. mistwang

    mistwang LiteSpeed Staff

    we will add an option to turn it on/off.
  17. DanEZPZ

    DanEZPZ Member

    To those of you that properly tested this, how did you get on?

    We fired up a new server and put a few users on to test it, within a few minutes they had taken it offline.

    The idea behind it is great, but it's not ready for real world use IMO.
  18. iseletsk

    iseletsk New Member

    Did you change CPU and maxEntryProc limits, or did you run with default one?
    What did you see in lveps -d?
  19. DanEZPZ

    DanEZPZ Member

    Hi Igor,

    We exchanged a few emails a week or so ago, I'm Dan from EZPZ Hosting (as my forum name suggests).

    The CPU limit is at 25 and procs is at 30.

    A client ran a script designed to stress the server which just killed disk I/O. Obviously clients wouldn't be doing this in a "real-world" environment but it was enough to show us the protection isn't quite what we expected.

    If you want to have a look at the setup and run the script you're more than welcome to have the root details.

    Dan
  20. iseletsk

    iseletsk New Member

    Dan,

    Thanks a lot. Yes, I remember that.
    We just figured out that Lite Speed doesn't take into account maxEntryProcs that LVE has.
    So, if you site runs more PHP scripts then there is maxEntryProcs -- all extra scripts will run outside LVE -- dragging down the server.
    You can control number of concurrent PHP scripts via LiteSpeed, on per user bases by setting PHP suEXEC Max Conns option.
    Make sure this value is lower then maxEntryProcs.

    In the future versions LiteSpeed will correctly reject (or queue requests) to server dynamic content once the site is over maxEntryProcs.

Share This Page