-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-12061) Handle changing
splay
in puppet.conf
Previously, splay could not be enabled or disabled in puppet.conf if the daemonized agent was already running. If the daemon was started with splay disabled, then enabling it would cause a NoMethodError, when trying to call `splay_limit` on a regular Job. If the daemon was started with splay enabled, then disabling it would have no effect, since we never recalculated the splay limit. To handle situations where `splay` may be enabled or disabled in puppet.conf, always create a SplayJob for the agent_run job and set its `splay_limit` to either the limit or 0, respectively. Note setting a `splay_limit` to 0 causes the splay offset to also be set to 0 because `rand(1)` always returns 0.
- Loading branch information
1 parent
45c4547
commit 5e53f75
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters