[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Scaling to 1500 clients - any one done this...
From: |
Guolin Cheng |
Subject: |
RE: Scaling to 1500 clients - any one done this... |
Date: |
Wed, 22 Sep 2004 13:08:10 -0700 |
Right, I did that as well and it works great.
In fact, I wrong cfagent from client's cron daily. In the cron script I
have another "splay" setting to make it more reliable, say, "SplayTime"
in cfengine fails or I mis-configured the option.
My cron includes something like the following:
########################################################################
###
.......
noSleep=false;
## specifically override parameters, for all testing purposes
if [ $# -gt 0 ] ; then
for positionalParameter in $*; do
case ${positionalParameter} in
--noSleep|--noSleep=|--noSleep=*)
noSleep=true
;;
esac
done
fi
# Sleep a random time, from 0 seconds to 20 minutes to avoid storm
effect
# on the cfengine server(s)
#$RANDOM is a bash shell built-in variable, randomly from 0 - 32767.
RandomSleepTime=`eval expr ${RANDOM} % 1200 `
if [ "${noSleep}" == "true" ] ; then
:
else
sleep ${RandomSleepTime}
fi
cfagent
-----Original Message-----
From: help-cfengine-bounces+guolin=alexa.com@gnu.org
[mailto:help-cfengine-bounces+guolin=alexa.com@gnu.org] On Behalf Of
Alec H. Peterson
Sent: Wednesday, September 22, 2004 12:58 PM
To: Ed Brown; ckacoroski@nsd.org
Cc: help-cfengine@gnu.org
Subject: Re: Scaling to 1500 clients - any one done this...
--On Wednesday, September 22, 2004 12:38 PM -0600 Ed Brown
<ebrown@lanl.gov> wrote:
> I think that all clients make an initial connection at the top of the
> runperiod (hour, half-hour...), no matter the splaytime.
I bet you can put a SplayTime into update.conf to address this.
Alec
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine
Re: Scaling to 1500 clients - any one done this..., Chip Seraphine, 2004/09/22
Re: Scaling to 1500 clients - any one done this..., Chris Edillon, 2004/09/22
- RE: Scaling to 1500 clients - any one done this...,
Guolin Cheng <=