Hi All,

I have found one more issue.    
When we install puppet agent, it creates logrotate which will kill the 
puppet and restart it.   We have configured logroate for all the nodes at 
1st minute of everday(00:01).   Because of that all the node's puppet agent 
get reloaded at 00:01 minutes so all agents trying to connect the puppet 
masters at same polling interval. 

Regards,
Suresh.

On Tuesday, 11 November 2014 21:18:42 UTC+5:30, Christopher Wood wrote:
>
> Following up to myself since it turned out that running puppet agents via 
> cron was better for us due to one important feature... 
>
>
> [cwood@client ~]$ mcod puppet runonce --environment=puppetupgrades 
> --no-splay -F hostname=puppetmasterlab 
> running: mco puppet -c /home/cwood/.mcollective.dev runonce 
> --environment=puppetupgrades --no-splay -F hostname=puppetmasterlab 
>
>  * [ ============================================================> ] 1 / 1 
>
>
> puppetmasterlab.domain.com            Request Aborted 
>    Cannot specify any custom puppet options when the daemon is running 
>
>
> ...I can do agent runs using other environments with mcollective. 
>
> It's interesting how things work out over time. 
>
>
>
> On Thu, Nov 06, 2014 at 12:22:04PM -0500, Christopher Wood wrote: 
> > On Thu, Nov 06, 2014 at 09:28:32AM +0100, Felix Frank wrote: 
> > > On 11/06/2014 09:25 AM, james.e...@fasthosts.com <javascript:> wrote: 
> > > > 
> > > > If that fails, you could try running the puppet agent from a cron 
> job 
> > > > instead with randomised start times as per the below link. 
> > > 
> > > +1 
> > > 
> > > I have yet to see a disadvantage of cron vs. the background agent. 
> > 
> > (Apparently I enjoy splitting tiny hairs in a thread branch. Possibly 
> rhubarbing on, but here goes.) 
> > 
> > Cultural... 
> > 
> > In my experience, it is easier to tell people that any host where an 
> agent is running is a puppetized host. I don't understand why it's more 
> difficult to read /etc/motd or grep root's crontab but that's probably my 
> view of things and not shared elsewhere. (This is more for the transition 
> period as everything goes under puppet management.) 
> > 
> > And then a manager might go and tell everybody that a host with an agent 
> running is a puppetized host and it's hard to go and change puppet methods 
> without requiring retraining. Your puzzlement at the difficulty level of 
> changing from agent to cron likely matches mine. 
> > 
> > Technological... 
> > 
> > The fqdn_rand() function doesn't necessarily spread things as evenly as 
> we might expect given randomness over large ranges. To illustrate, 
> fictional example: 
> > 
> > $ for x in `seq 1 10000`; do echo "notice(fqdn_rand(60, 'host${x}.
> cwood.com'))"; done >/tmp/xx.pp 
> > $ puppet apply --color=false /tmp/xx.pp | grep Scope | awk '{print $3}' 
> | sort | uniq -c | sort -rn >/tmp/yy 
> > $ head -5 /tmp/yy 
> >     199 1 
> >     195 51 
> >     188 52 
> >     184 55 
> >     184 48 
> > $ tail -5 /tmp/yy 
> >     151 9 
> >     150 46 
> >     145 5 
> >     144 2 
> >     141 19 
> > 
> > Obviously using cron I might choose something different than 
> run-on-a-random-minute, but I will still be a bit suspicious about this. 
> > 
> > Also, cron isn't necessarily good at running things intermittently over 
> less clock-friendly periods. If I'd like something to run every 47 minutes, 
> just to pick, that's going to bit a bit harder to express with cron. 
> > 
> > 
> > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups "Puppet Users" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to puppet-users...@googlegroups.com <javascript:>. 
> > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/545B3130.90007%40alumni.tu-berlin.de.
>  
>
> > > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to puppet-users...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/20141106172204.GA26122%40iniquitous.heresiarch.ca.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3ae5eb7d-0ea4-4d4a-810c-f414fffd3b85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to