OpenVZ Forum


Home » Mailing lists » Users » Reduce Load in VZs
Re: Reduce Load in VZs [message #43170 is a reply to message #43169] Wed, 03 August 2011 07:47 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On 08/03/2011 11:11 AM, Tim Small wrote:
> On 03/08/11 07:55, me@free-minds.net wrote:
>> Hello,
>> We have on our Server about 17VZs installed and running. Most of them run
>> simmilar cron jobs, e.g. apticron and this causes very high load at night.
>>
>> Is there any best practise that we can use to reduce the load with these
>> jobs? I tought about running these cronjobs from outside with vzctl exec
>> (so make a cron at the host and just start the programms manually) and run
>> only 1 job at once.
>>
>> In general: Is there a best practise to run things in every VZ and not
>> produce high load?
>>
>>
> I patched the openvz scripts to randomise the start-time of these
> scripts across containers. One of my clients had the same problem - it
> showed up quite clearly using the openvzcpu munin plugin which I wrote...
>
> I'll dig out the patch later. Bug me if I haven't within 24 hours.
>
> Tim.
>
Interesting. vzctl does crontab randomization, by means of
/etc/vz/dists/scripts/vps-postcreate.sh
script, so the question is why it is not working. I can see a few
reasons why it's not working as it should:

(1) CT was created not by vzctl
(2) CT has been upgraded from the inside, so /etc/crontab was being modified
(3) CT has a distro installed which has crontab in some unusual location
(4) Some other bug?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Puppet module for OpenVZ management
Next Topic: Question About /proc file system in VMs.
Goto Forum:
  


Current Time: Fri Aug 15 06:20:41 GMT 2025

Total time taken to generate the page: 0.30961 seconds