From 9f5b1cec82982bd8145e14d65bebce9193d241b4 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Mon, 12 Jan 2026 20:21:39 +1100 Subject: [PATCH] fix: thundering hurd (#435) - started all puppet clients at the same time, resulting in thundering herd - add a randomness timer of 10 minutes Reviewed-on: https://git.unkin.net/unkin/puppet-prod/pulls/435 --- site/profiles/manifests/puppet/client.pp | 2 ++ site/profiles/templates/puppet/client/puppet.conf.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/site/profiles/manifests/puppet/client.pp b/site/profiles/manifests/puppet/client.pp index 01df2ad..b58c33a 100644 --- a/site/profiles/manifests/puppet/client.pp +++ b/site/profiles/manifests/puppet/client.pp @@ -13,6 +13,8 @@ class profiles::puppet::client ( Boolean $show_diff = true, Boolean $usecacheonfailure = false, Integer $facts_soft_limit = 4096, + Boolean $splay = true, + Integer $splaylimit = 600, ) { # dont manage puppet.conf if this is a puppetmaster diff --git a/site/profiles/templates/puppet/client/puppet.conf.erb b/site/profiles/templates/puppet/client/puppet.conf.erb index 65f3328..d9bc058 100644 --- a/site/profiles/templates/puppet/client/puppet.conf.erb +++ b/site/profiles/templates/puppet/client/puppet.conf.erb @@ -12,3 +12,5 @@ runtimeout = <%= @runtimeout %> show_diff = <%= @show_diff %> usecacheonfailure = <%= @usecacheonfailure %> number_of_facts_soft_limit = <%= @facts_soft_limit %> +splay = <%= @splay %> +splaylimit = <%= @splaylimit %>