Mark Bergsma has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60273


Change subject: Set dysprosium backend weight to 6x
......................................................................

Set dysprosium backend weight to 6x

Change-Id: I29a9939c9468cb868cae32ef1b66c792530833bd
---
M manifests/role/cache.pp
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/73/60273/1

diff --git a/manifests/role/cache.pp b/manifests/role/cache.pp
index 6386c7e..4bd8031 100644
--- a/manifests/role/cache.pp
+++ b/manifests/role/cache.pp
@@ -418,6 +418,7 @@
                                }
                        }
 
+                       $backend_weight = 20
                        if $::site == "eqiad" {
                                $storage_size_main = 100
                                $storage_size_bigobj = 10
@@ -490,7 +491,7 @@
                                                'first_byte_timeout' => "35s",
                                                'between_bytes_timeout' => "4s",
                                                'max_connections' => 1000,
-                                               'weight' => 20,
+                                               'weight' => $backend_weight,
                                        }],
                                wikimedia_networks => 
$network::constants::all_networks,
                                xff_sources => $network::constants::all_networks
@@ -512,7 +513,7 @@
                                backend_options => [
                                        {
                                                'backend_match' => 
"^dysprosium\.eqiad\.wmnet$",
-                                               'weight' => 40,
+                                               'weight' => 6 * $backend_weight,
                                        },
                                        {
                                                'port' => 3128,
@@ -521,7 +522,7 @@
                                                'between_bytes_timeout' => "2s",
                                                'max_connections' => 100000,
                                                'probe' => "varnish",
-                                               'weight' => 20,
+                                               'weight' => $backend_weight,
                                        }],
                                xff_sources => 
$network::constants::all_networks,
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29a9939c9468cb868cae32ef1b66c792530833bd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>

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

Reply via email to