BBlack has submitted this change and it was merged.

Change subject: wikimedia.vcl: issue an HTTP 204 for all beacon/* requests
......................................................................


wikimedia.vcl: issue an HTTP 204 for all beacon/* requests

Instead of migrating /event.gif and /statsv, I will use the opportunity to
namespace these two beacon endpoints under beacon/.

Task: T95448
Change-Id: Ie6258f74fdd9c8e107b977581f41eaeb9e9d0b61
---
M modules/varnish/templates/vcl/wikimedia.vcl.erb
1 file changed, 9 insertions(+), 0 deletions(-)

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



diff --git a/modules/varnish/templates/vcl/wikimedia.vcl.erb 
b/modules/varnish/templates/vcl/wikimedia.vcl.erb
index b6d50e4..5512c91 100644
--- a/modules/varnish/templates/vcl/wikimedia.vcl.erb
+++ b/modules/varnish/templates/vcl/wikimedia.vcl.erb
@@ -297,6 +297,15 @@
                error 200 "OK"; 
        }
 
+       if (req.url ~ "^/beacon\/[^/?]+") {
+               // Logging beacon endpoints
+               //
+               // They are handled by log tailers (varnishkafka and 
varnishncsa) that filter the
+               // Varnish shm log for reqs to these endpoints and forward them 
to log processors
+               // for storage and analysis.
+               error 204;
+       }
+
        /* Function vcl_recv in <%= @vcl %>.inc.vcl will be appended here */
 }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie6258f74fdd9c8e107b977581f41eaeb9e9d0b61
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: BBlack <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to