From 919c904091ce69ab22eb25f55a1394894123a1bc Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 20 Jan 2022 20:45:19 -0800 Subject: [PATCH] puppet: Give the uwsgi processes a shorter process name. Previously, the complete command line, which is quite long, is shown: 3963143 ? SN 0:00 /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963144 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963145 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963146 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963147 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963148 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini 3963149 ? SN 0:03 \_ /home/zulip/deployments/current/zulip-current-venv/bin/uwsgi --ini /etc/zulip/uwsgi.ini Configure uwsgi to rename and number the processes. This results in: 3907613 ? SN 0:00 zulip-django uWSGI master 3907614 ? SN 0:05 \_ zulip-django uWSGI worker 1 3907615 ? SN 0:03 \_ zulip-django uWSGI worker 2 3907616 ? SN 0:05 \_ zulip-django uWSGI worker 3 3907617 ? SN 0:05 \_ zulip-django uWSGI worker 4 3907618 ? SN 0:05 \_ zulip-django uWSGI worker 5 3907619 ? SN 0:05 \_ zulip-django uWSGI worker 6 --- puppet/zulip/templates/uwsgi.ini.template.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/puppet/zulip/templates/uwsgi.ini.template.erb b/puppet/zulip/templates/uwsgi.ini.template.erb index 1dbbb8caa3..71a1e79c22 100644 --- a/puppet/zulip/templates/uwsgi.ini.template.erb +++ b/puppet/zulip/templates/uwsgi.ini.template.erb @@ -23,6 +23,10 @@ master-fifo=/home/zulip/deployments/uwsgi-control # How many serving processes to fork processes=<%= @uwsgi_processes %> +# Give the processes short process names +auto-procname=true +procname-prefix-spaced=zulip-django + # Longest response allowed, in seconds, before killing the worker harakiri=20