puppet 多长时间展开一次 运行?

How often does puppet with splay run?

假设我为傀儡代理打开 splay 选项:

sudo puppet config set splay true --section agent

那我运行:

/usr/local/bin/puppet agent --onetime --no-daemonize

据我了解splay导致签到时间随机化。

我想知道这个随机性是如何计算的?它是下一个、小时、一天、一周或其他时间的随机时间吗?

我正在阅读 here,默认时间在命令 运行 和之后的 2 分钟 之间随机分配。

When the service is stopped, the selected nodes will randomly stagger the start of their runs (“splay”) over a default interval of two minutes. If you wish, you can specify special options, including a longer interval (“splaylimit”). You can also set the force option to true if you want the selected nodes to start immediately. This behavior is more flexible and resilient.


2 分钟可以修改为:

LIMIT=60
sudo puppet config set splaylimit $LIMIT --section agent