CloudLinux Bug: Please, read if you are experiencing problems
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Igor Seletskiy
  2. Friday, 23 April 2010
  3.  Subscribe via email
but with order of lvectl execution
Rate this post:
  1. 23.04.2010 04:04:08
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
There is a bug in the order /etc/init.d/lvectl is executed. It is executed after apache (httpd) is. As the result if any site gets accessed before lvectl is started, the LVE for that site is set with default limits. The CPU limit is set by default to 100% / 10 * number of cores.
This means that if you have 8 cores -- cpu limit will be set to 1, and site will not work. One of the side effects of it is that load shuts up very high right after the start, keeps going up, even on the server that is not loaded at all.
To see if you are experiencing the problem, run
cat /proc/lve/list
If you see LVEs with CPU limit not being set at default value (or value you have set).

To resolve the issue:
Edit /etc/init.d/lvectl
Change line # chkconfig: 2345 99 90
to line: # chkconfig: 2345 11 90
execute:
chkconfig lvectl resetpriorities

reboot the server.

We should have updated package that should resolve this issue fairly soon. I will update the post once we do.
  1. 23.04.2010 05:04:30
  2. # 2
Guillermo Calvo Accepted Answer
Posts: 6
Joined: 21.04.2010
0
Votes
Undo
Igor:
There is a typo

chkconfig vectl resetpriorities should be chkconfig lvectl resetpriorities
  1. 23.04.2010 05:04:28
  2. # 3
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Guillermo Calvo wrote:
Igor:

There is a typo



chkconfig vectl resetpriorities should be chkconfig lvectl resetpriorities

Thanks a lot.
  1. 23.04.2010 05:04:38
  2. # 4
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
I just confirmed that we are not counting things correctly with mod_fcgid. I will try to have a fix by Monday.
  1. 26.04.2010 03:04:22
  2. # 5
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
The fix for the order in which lvectl is executed is in repository right now.
yum update lve-utils should fix the issue (you might need to reboot).
You should get version 0.3-0.1 installed.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.