BBlack has uploaded a new change for review.

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

Change subject: cache_maps: define tier-2 backending
......................................................................

cache_maps: define tier-2 backending

Bug: T109162
Change-Id: Ibfd96eb1fc473f0f8c4e9222d28e70733bacbb9f
---
M modules/role/manifests/cache/maps.pp
1 file changed, 16 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/33/268233/1

diff --git a/modules/role/manifests/cache/maps.pp 
b/modules/role/manifests/cache/maps.pp
index bdf18ae..ca772a1 100644
--- a/modules/role/manifests/cache/maps.pp
+++ b/modules/role/manifests/cache/maps.pp
@@ -25,11 +25,25 @@
             'backend'   => {
                 'dynamic'  => 'no',
                 'type'     => 'random',
-                # XXX note explicit abnormal hack: cache only exists in eqiad, 
service only exists in codfw...
+                # XXX note explicit abnormal hack: service only exists in 
codfw, but eqiad is Tier-1 in general
+                # XXX this means traffic is moving x-dc without crypto!
+                # XXX this also means users mapped to codfw frontends bounce 
traffic [codfw->eqiad->codfw] on their way in!
                 'backends' => 
$role::cache::configuration::backends[$::realm]['kartotherian']['codfw'],
             },
         },
-        # XXX maps has no tier-2, yet
+        'two' => {
+            'backend' => {
+                'dynamic'  => 'yes',
+                'type'     => 'chash',
+                'backends' => $cluster_nodes['eqiad'],
+            },
+            'backend_random' => {
+                'dynamic'  => 'yes',
+                'type'     => 'random',
+                'backends' => $cluster_nodes['eqiad'],
+                'service'  => 'varnish-be-rand',
+            },
+        }
     }
 
     if $::role::cache::configuration::has_ganglia {

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

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

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

Reply via email to