close it

Member Login

Enter your IT Patrol inc. username.
Enter the password that accompanies your username.

Request new password

Not a member yet? Sign Up!

Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.
A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

We accept

RBK money

paypal

Настройка limiterd.conf

gor @ 8 November, 2009 - 19:40

Стандартно файл /etc/limiter/limiterd.conf имеет следующее содержание:

  1.  
  2. # CPULIMIT load rule
  3. cpulimit cpulimit
  4.  
  5. # HIGH Load rules
  6. # LOADAVG(1 min) NAME_OF_RULE
  7. # example: 20.00 critical, mean if loadavg is 20 or more, will be executed rule "critical"
  8. 2.00 warning
  9. 10.00 danger
  10. 20.00 critical

Параметр cpulimit определяет имя файла в директории /etc/limiter/rules.d , с правилами ограничения использования процессора.

Остальные строки указывают соответствие между loadavg  и именем файла с правилами. Эти правила срабатывают, когда loadavg становится равным или выше указаного loadavg но ниже loadavg более нижнего правила.

 

Расшифровывая конфиг по умолчанию, получаем:

- если loadavg >= 2 но  < 10 - срабатывают правила из файла  rules.d/warning

- если loadavg >= 10 но  < 20 - срабатывают правила из файла  rules.d/danger

- если loadavg >= 20 - срабатывают правила из файла  rules.d/critical

Об правилах в этих файлах детально в следующем документе.

Poll

Как вы нас нашли?:

© 2004-2010, ITPatrol inc.