mirror of https://github.com/zulip/zulip.git
puppet: Always create a uwsgi master control socket.
This is potentially useful even with rolling restarts disabled.
This commit is contained in:
parent
721a101f12
commit
a522ad1d9a
|
@ -119,12 +119,6 @@ class zulip::app_frontend_base {
|
|||
notify => Service[$zulip::common::supervisor_service],
|
||||
}
|
||||
|
||||
$uwsgi_rolling_restart = zulipconf('application_server', 'rolling_restart', '')
|
||||
if $uwsgi_rolling_restart == '' {
|
||||
file { '/home/zulip/deployments/uwsgi-control':
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
$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)
|
||||
|
|
|
@ -15,6 +15,9 @@ chown-socket=zulip:zulip
|
|||
socket=/home/zulip/deployments/uwsgi-socket
|
||||
listen=<%= @uwsgi_listen_backlog_limit %>
|
||||
|
||||
# Create a control socket, allowing fancier runtime control
|
||||
master-fifo=/home/zulip/deployments/uwsgi-control
|
||||
|
||||
|
||||
|
||||
# How many serving processes to fork
|
||||
|
@ -47,9 +50,6 @@ hook-post-fork=chdir:/home/zulip/deployments/current
|
|||
# https://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html#preforking-vs-lazy-apps-vs-lazy
|
||||
lazy-apps=true
|
||||
|
||||
# Create a control socket, allowing fancier runtime control
|
||||
master-fifo=/home/zulip/deployments/uwsgi-control
|
||||
|
||||
|
||||
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in New Issue