Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
uwsgi: Increase request buffer size to 64k, from 8k default.
Alex Vandiver4fd51cb5ad7c
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex 7e0b686088f..0d967fac8f2 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -691,10 +691,6 @@ all at once. This decreases the number of 502's served to clients, atthe cost of slightly increased memory usage, and the possibility thatdifferent requests will be served by different versions of the code.-#### `uwsgi_buffer_size`--Override the default uwsgi buffer size of 8192.-#### `uwsgi_listen_backlog_limit`Override the default uwsgi backlog of 128 connections.diff --git a/puppet/zulip/manifests/app_frontend_base.pp b/puppet/zulip/manifests/app_frontend_base.ppindex 88afea7f748..ba6df815e81 100644--- a/puppet/zulip/manifests/app_frontend_base.pp+++ b/puppet/zulip/manifests/app_frontend_base.pp@@ -120,7 +120,6 @@ class zulip::app_frontend_base {}$uwsgi_listen_backlog_limit = zulipconf('application_server', 'uwsgi_listen_backlog_limit', 128)- $uwsgi_buffer_size = zulipconf('application_server', 'uwsgi_buffer_size', 8192)$uwsgi_processes = zulipconf('application_server', 'uwsgi_processes', $uwsgi_default_processes)$somaxconn = 2 * Integer($uwsgi_listen_backlog_limit)file { '/etc/zulip/uwsgi.ini':diff --git a/puppet/zulip/templates/uwsgi.ini.template.erb b/puppet/zulip/templates/uwsgi.ini.template.erbindex dac3e6bfa35..7a46162359a 100644--- a/puppet/zulip/templates/uwsgi.ini.template.erb+++ b/puppet/zulip/templates/uwsgi.ini.template.erb@@ -38,8 +38,10 @@ harakiri=20-# Size of HTTP headers to read-buffer-size=<%= @uwsgi_buffer_size %>+# Default buffer for client HTTP headers is 4k, and nginx gets a 502+# if the client sends more. Set this high; nginx limits headers to+# 32k, and will 400 requests with more than that.+buffer-size=65535# The master process will buffer requests with bodies longer than 4096# bytes, freeing up workers from hanging around waiting to read them.