BBlack has submitted this change and it was merged.

Change subject: cache_upload: increase FE size limit to 2MB
......................................................................


cache_upload: increase FE size limit to 2MB

Part of ongoing experiments to find an approximately-optimal value
for maximizing FE hitrate.

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

Approvals:
  BBlack: Verified; Looks good to me, approved



diff --git a/modules/varnish/templates/upload-frontend.inc.vcl.erb 
b/modules/varnish/templates/upload-frontend.inc.vcl.erb
index a0ee370..e99764f 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 >= 512KB size
-       if (std.integer(beresp.http.Content-Length, 524288) >= 524288 || 
beresp.http.Content-Length ~ "^[0-9]{9}") {
+       // hit-for-pass objects >= 2MB size
+       if (std.integer(beresp.http.Content-Length, 2097152) >= 2097152 || 
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/311330
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

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