BBlack has submitted this change and it was merged.

Change subject: cache_upload: send randomized pass traffic directly to t1 
backends
......................................................................


cache_upload: send randomized pass traffic directly to t1 backends

backend_random is only used for (and for all) "pass" traffic (both
explicit and hit for pass).  For tier-2 frontends, the jump of
this traffic through tier-2 backends before hitting tier-1
backends is pointless and wasteful: sending it directly to tier-1
backends accomplishes the same thing more efficiently and still
makes use of our IPSec protection for x-dc connections.  In the
long run we'll go one step further and have all frontends
(regardless of tier) contact the applayer directly for pass
traffic and not need "backend_random" at all, but that's blocked
on further x-dc crypto work.

Bug: T96847
Change-Id: I66813f92fe7763b55b7c05a34238019e77a4e0d0
---
M modules/role/manifests/cache/upload.pp
1 file changed, 2 insertions(+), 1 deletion(-)

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 df4658d..449c7aa 100644
--- a/modules/role/manifests/cache/upload.pp
+++ b/modules/role/manifests/cache/upload.pp
@@ -115,7 +115,8 @@
             'backend_random' => {
                 'dynamic'  => 'yes',
                 'type'     => 'random',
-                'backends' => $site_cluster_nodes,
+                'backends' => $cluster_nodes['eqiad'],
+                'dc'       => 'eqiad',
                 'service'  => 'varnish-be-rand',
             },
         },

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I66813f92fe7763b55b7c05a34238019e77a4e0d0
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@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