BBlack has submitted this change and it was merged.

Change subject: upload: splay restart cron a lot better
......................................................................


upload: splay restart cron a lot better

Change-Id: I4e0bebc0fc97dd48f4b1edfceae042fa76b67316
---
M modules/role/manifests/cache/upload.pp
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  BBlack: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/role/manifests/cache/upload.pp 
b/modules/role/manifests/cache/upload.pp
index c81dad6..908f7ad 100644
--- a/modules/role/manifests/cache/upload.pp
+++ b/modules/role/manifests/cache/upload.pp
@@ -131,8 +131,9 @@
     }
 
     # XXX: temporary, we need this to mitigate T145661
-    $be_restart_h = fqdn_rand(24, 'eb70e880')
-    $be_restart_m = fqdn_rand(60, '5ae39fee')
+    $rt_parts = split(inline_template("<%= require 'digest/md5'; x = 
Random.new(Digest::MD5.hexdigest(@fqdn).to_i(16)).rand(1440); hh = x / 60; mm = 
x % 60; hh.to_s() + ':' + mm.to_s(); %>"), ':')
+    $be_restart_h = $rt_parts[0]
+    $be_restart_m = $rt_parts[1]
 
     file { '/etc/cron.d/varnish-backend-restart':
         mode    => '0444',

-- 
To view, visit https://gerrit.wikimedia.org/r/311234
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4e0bebc0fc97dd48f4b1edfceae042fa76b67316
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to