[Yum] new daily release and other info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 8 Jul 2002, Grigory Bakunov wrote:

> 2) in /etc/yum.cron we can see 
>         sleep `perl -e 'print (int(rand(180))*60) . "\n";'`
> 
> whats a shame! :)
> 	sleep `python -c 'from random import randrange; print randrange(180*60)'`
> looks much better :)

and adding a variable parsed from yum.conf to control just how long you
randomly sleep:

  print randrange(random_delay)

is better yet.  

This is a function of expected server load -- somebody with only five
hosts updating from a single server might prefer to set random_delay to
zero and just do them all at once, or set it to one minute to spread
them out a few seconds.  Somebody with several hundred hosts sync'ing
from a single server might want the updates spread out over the current
default three hours.  A variable in yum.conf is autodocumenting and
gives the admin person obvious and simple control.

   rgb

-- 
Robert G. Brown	                       http://www.phy.duke.edu/~rgb/
Duke University Dept. of Physics, Box 90305
Durham, N.C. 27708-0305
Phone: 1-919-660-2567  Fax: 919-660-2525     email:rgb@xxxxxxxxxxxx





[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux