diff options
author | Alex Schultz <aschultz@redhat.com> | 2017-04-06 15:36:51 -0600 |
---|---|---|
committer | Alex Schultz <aschultz@redhat.com> | 2017-05-01 16:16:31 -0600 |
commit | 0d59488780da6269dc71072581f075f6859606ea (patch) | |
tree | f5eb67c85b8adb643bd6876decad34d45f8c4b81 /puppet/controller-role.yaml | |
parent | 36ee7bbe1b7bea0ec54dcefe8e4d7dd0fcbe482e (diff) |
Enable splay for os-collect-config
At scale, having the os-collect-config instances all check in at the
same time can cause performance problems. This change enables splay and
sets it to a default maximum random sleep of 30 seconds prior to the
os-collect-config polling.
Change-Id: Iab8b51f4e5fb4727b8aa7e081f5cbfcbf11f7fcb
Depends-On: I88f623c9e8db9ed4a186918206a63faec8f7f673
Closes-Bug: #1677314
Diffstat (limited to 'puppet/controller-role.yaml')
-rw-r--r-- | puppet/controller-role.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/puppet/controller-role.yaml b/puppet/controller-role.yaml index 2f4f583c..77e7e4f9 100644 --- a/puppet/controller-role.yaml +++ b/puppet/controller-role.yaml @@ -141,6 +141,15 @@ parameters: type: string description: Command which will be run whenever configuration data changes default: os-refresh-config --timeout 14400 + ConfigCollectSplay: + type: number + default: 30 + description: | + Maximum amount of time to possibly to delay configuation collection + polling. Defaults to 30 seconds. Set to 0 to disable it which will cause + the configuration collection to occur as soon as the collection process + starts. This setting is used to prevent the configuration collection + processes from polling all at the exact same time. UpgradeInitCommand: type: string description: | @@ -169,6 +178,7 @@ resources: metadata: os-collect-config: command: {get_param: ConfigCommand} + splay: {get_param: ConfigCollectSplay} properties: image: {get_param: controllerImage} image_update_policy: {get_param: ImageUpdatePolicy} |