Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Reorganize and comment uwsgi.ini file.
Alex Vandiver721a101f1208
diff --git a/puppet/zulip/templates/uwsgi.ini.template.erb b/puppet/zulip/templates/uwsgi.ini.template.erbindex e3f5e20d26a..1578c47abbf 100644--- a/puppet/zulip/templates/uwsgi.ini.template.erb+++ b/puppet/zulip/templates/uwsgi.ini.template.erb@@ -1,29 +1,59 @@[uwsgi]-socket=/home/zulip/deployments/uwsgi-socket-module=zproject.wsgi:application+# Basic environment+env=LANG=C.UTF-8+uid=zulip+gid=zulip++# Where the main application is locatedchdir=/home/zulip/deployments/current/+module=zproject.wsgi:application++# Start a master process listening on this socketmaster=truechmod-socket=700chown-socket=zulip:zulip+socket=/home/zulip/deployments/uwsgi-socket+listen=<%= @uwsgi_listen_backlog_limit %>++++# How many serving processes to forkprocesses=<%= @uwsgi_processes %>++# Longest response allowed, in seconds, before killing the workerharakiri=20++++# Size of HTTP headers to readbuffer-size=<%= @uwsgi_buffer_size %>-listen=<%= @uwsgi_listen_backlog_limit %>++# The master process will buffer requests with bodies longer than 4096+# bytes, freeing up workers from hanging around waiting to read them.post-buffering=4096-env= LANG=C.UTF-8-uid=zulip-gid=zulip+++# Create a socket to serve very basic UWSGI statsstats=/home/zulip/deployments/uwsgi-stats+<% if @uwsgi_rolling_restart != '' -%>-master-fifo=/home/zulip/deployments/uwsgi-control+# If we are doing a rolling restart, re-chdir to the current "current"+# directory in each forked processhook-post-fork=chdir:/home/zulip/deployments/current+# lazy-apps are required for rolling restarts:# https://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html#preforking-vs-lazy-apps-vs-lazylazy-apps=true-<% end -%>+# Create a control socket, allowing fancier runtime control+master-fifo=/home/zulip/deployments/uwsgi-control++++<% end -%>+# Silence warnings from clients closing their connection earlyignore-sigpipe = trueignore-write-errors = truedisable-write-exception = true