BBlack has uploaded a new change for review.

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

Change subject: upload: drop FE size limit 1MB->512KB
......................................................................

upload: drop FE size limit 1MB->512KB

Change-Id: I459fea3da58f856498d71c1afc7efaea79036e4d
---
M modules/varnish/templates/upload-frontend.inc.vcl.erb
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/modules/varnish/templates/upload-frontend.inc.vcl.erb 
b/modules/varnish/templates/upload-frontend.inc.vcl.erb
index 2ced015..a0ee370 100644
--- a/modules/varnish/templates/upload-frontend.inc.vcl.erb
+++ b/modules/varnish/templates/upload-frontend.inc.vcl.erb
@@ -77,8 +77,8 @@
        }
        <%- end -%>
 
-       // hit-for-pass objects >= 1MB size
-       if (std.integer(beresp.http.Content-Length, 1048576) >= 1048576 || 
beresp.http.Content-Length ~ "^[0-9]{9}") {
+       // hit-for-pass objects >= 512KB size
+       if (std.integer(beresp.http.Content-Length, 524288) >= 524288 || 
beresp.http.Content-Length ~ "^[0-9]{9}") {
                set beresp.http.X-CDIS = "pass";
                <%- if @varnish_version4 -%>
                set beresp.uncacheable = true;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I459fea3da58f856498d71c1afc7efaea79036e4d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <bbl...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to