Issue #11407 has been updated by Jo Rhett.

Status changed from Closed to Re-opened

James Turnbull wrote:
> > Can we please get some documentation for how puppet calculates the time to 
> > check in?  Is it:
> > * Run shortly after startup and every 30 minutes after that?
> 
> It runs by default according to the value of the runinterval configuration 
> option (see http://docs.puppetlabs.com/references/stable/configuration.html). 
> By default this is every 30 minutes when daemonized.

I understand "every 30 minutes" -- but where is that calculated from?  In what 
I've seen puppet seems to run shortly after startup most of the time, long 
before the run internval has passed.
 
> > # Does stopping and starting the agent restart the timer, or will it keep 
> > the same time across restarts?
> Restarting the agent resets the runinterval to zero.
> > # Does running puppet agent --onetime affect the timer?
> Yes. Resets to zero.

Meaning an internal timer, not the config option I assume.   So there is an 
internal timer named runinterval which increments, and puppet runs when the 
runinternal timer reaches the runinterval configuration option?

Is the counter reset to zero on run invocation or on run completion?

If a run fails, is a shorter timer used to retry?

So to spread out a bunch of systems, either restart them or run "puppet agent 
--onetime" in a scattered period over $runinterval time should naturally 
scatter them.

> I would suggest that this is a question better asked on the mailing list.

I asked there and Nigel responded but never answered the questions.


----------------------------------------
Bug #11407: How does puppet agent calculate the time to check in?
https://projects.puppetlabs.com/issues/11407

Author: Jo Rhett
Status: Re-opened
Priority: Normal
Assignee: 
Category: agent
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Can we please get some documentation for how puppet calculates the time to 
check in?  Is it:

* Is the timing information stored in a file somewhere?
* Can we run a command to find out when the next check time will be?
* Run shortly after startup and every 30 minutes after that?
* Run 30 minutes after the last run started?
* Run 30 minutes after the last run completed?

Can we influence this in any way?

# Does stopping and starting the agent restart the timer, or will it keep the 
same time across restarts?
# Does running puppet agent --onetime affect the timer?
# Is there anything else we can do (besides 'splay') to influence the timer on 
a system?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to