Puppet agent - two calls to server / request?

15 views
Skip to first unread message

JonY

unread,
Feb 5, 2014, 11:54:13 AM2/5/14
to puppet...@googlegroups.com
I set up a simple ENC this morning that just logs every agent request to a file. What I've noticed is that every agent is logging two requests per run. Each request is about ~10 seconds apart.

Is this normal? Are my agents not setup correctly?

Jason Slagle

unread,
Feb 5, 2014, 11:57:16 AM2/5/14
to puppet...@googlegroups.com
This is normal as far as I know.

I suspect it has to do with either plugins or environment.

Jason

jcbollinger

unread,
Feb 6, 2014, 9:09:27 AM2/6/14
to puppet...@googlegroups.com


On Wednesday, February 5, 2014 10:54:13 AM UTC-6, JonY wrote:
I set up a simple ENC this morning that just logs every agent request to a file. What I've noticed is that every agent is logging two requests per run. Each request is about ~10 seconds apart.

Is this normal? Are my agents not setup correctly?


It is normal.  The ENC is consulted at plugin sync to get the node's environment.  The agent makes its catalog request separately, later, at which time the ENC is run again.  The ENC might later be run more times as the agent downloads 'source'd files from puppet:/// URLs.


John

Reply all
Reply to author
Forward
0 new messages