From 0d59488780da6269dc71072581f075f6859606ea Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 6 Apr 2017 15:36:51 -0600 Subject: 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 --- puppet/compute-role.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'puppet/compute-role.yaml') diff --git a/puppet/compute-role.yaml b/puppet/compute-role.yaml index ebdd762d..c6031ea7 100644 --- a/puppet/compute-role.yaml +++ b/puppet/compute-role.yaml @@ -127,6 +127,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: | @@ -149,6 +158,7 @@ resources: metadata: os-collect-config: command: {get_param: ConfigCommand} + splay: {get_param: ConfigCollectSplay} properties: image: {get_param: NovaImage} image_update_policy: -- cgit 1.2.3-korg