Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
supervisor: Drop minfds back down from 1000000 to 40000.
Alex Vandivera95b796a9167
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex 4c3adede515..ee41bcb0b13 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -760,6 +760,17 @@ once. This decreases the number of 502's served to clients, at thecost of slightly increased memory usage, and the possibility thatdifferent requests will be served by different versions of the code.+#### `service_file_descriptor_limit`++The number of file descriptors which [Supervisor is configured to allow+processes to use][supervisor-minds]; defaults to 40000. If your Zulip deployment+is very large (hundreds of thousands of concurrent users), your Django processes+hit this limit and refuse connections to clients. Raising it above this default+may require changing system-level limits, particularly if you are using a+virtualized environment (e.g. Docker, or Proxmox LXC).++[supervisor-minfds]: http://supervisord.org/configuration.html?highlight=minfds#supervisord-section-values+#### `s3_memory_cache_size`Used only when the [S3 storage backend][s3-backend] is in use.diff --git a/puppet/zulip/manifests/supervisor.pp b/puppet/zulip/manifests/supervisor.ppindex a661a7a2174..9d21d2a8998 100644--- a/puppet/zulip/manifests/supervisor.pp+++ b/puppet/zulip/manifests/supervisor.pp@@ -97,6 +97,7 @@ class zulip::supervisor {}}+ $file_descriptor_limit = zulipconf('application_server', 'service_file_descriptor_limit', 40000)concat { $zulip::common::supervisor_conf_file:ensure => 'present',require => Package[supervisor],diff --git a/puppet/zulip/templates/supervisor/supervisord.conf.erb b/puppet/zulip/templates/supervisor/supervisord.conf.erbindex 221e4989edd..3794711b5cc 100644--- a/puppet/zulip/templates/supervisor/supervisord.conf.erb+++ b/puppet/zulip/templates/supervisor/supervisord.conf.erb@@ -9,7 +9,7 @@ chown=zulip:zuliplogfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)-minfds=1000000 ; file descriptor limit for children+minfds=<%= @file_descriptor_limit %> ; file descriptor limit for children; the below section must remain in the config file for RPC; (supervisorctl/web interface) to work, additional interfaces may be