Mark Bergsma has submitted this change and it was merged.

Change subject: Switch cp3003 frontend to use chash weight 100
......................................................................


Switch cp3003 frontend to use chash weight 100

Change-Id: If07d26c08970129f811c484c26066a5846c198ce
---
M manifests/role/cache.pp
1 file changed, 7 insertions(+), 1 deletion(-)

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



diff --git a/manifests/role/cache.pp b/manifests/role/cache.pp
index a91f842..411661a 100644
--- a/manifests/role/cache.pp
+++ b/manifests/role/cache.pp
@@ -670,6 +670,12 @@
                        $director_retries = $backend_weight * 4
                }
 
+               # FIXME: remove after migration
+               $temp_backend_weight = $::hostname ? {
+                       /^cp300[3]$/ => 100,
+                       default => 20,
+               }
+
                include standard,
                        nrpe
 
@@ -774,7 +780,7 @@
                                },
                                {
                                        'backend_match' => 
'^cp30[0-9][0-9]\.esams\.wikimedia\.org$',
-                                       'weight' => 20,
+                                       'weight' => $temp_backend_weight,
                                },
                                {
                                        'port' => 3128,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If07d26c08970129f811c484c26066a5846c198ce
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to