mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
We have not identify the root cause of wsrelay failure but attempt to make wsrelay restart itself resulted in postgres and redis connection leak. We were not able to fully identify where the redis connection leak comes from so reverting back to failing and removing startsecs 30 will prevent wsrelay to FATAL
92 lines
2.0 KiB
Django/Jinja
92 lines
2.0 KiB
Django/Jinja
[supervisord]
|
|
nodaemon = True
|
|
umask = 022
|
|
logfile = /dev/stdout
|
|
logfile_maxbytes = 0
|
|
pidfile = /var/run/supervisor/supervisor.task.pid
|
|
|
|
[program:dispatcher]
|
|
{% if kube_dev | bool %}
|
|
command = make dispatcher
|
|
directory = /awx_devel
|
|
{% else %}
|
|
command = awx-manage run_dispatcher
|
|
directory = /var/lib/awx
|
|
{% endif %}
|
|
autorestart = true
|
|
startsecs = 30
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:wsrelay]
|
|
{% if kube_dev | bool %}
|
|
command = make run-wsrelay
|
|
directory = /awx_devel
|
|
{% else %}
|
|
command = awx-manage run_wsrelay
|
|
directory = /var/lib/awx
|
|
{% endif %}
|
|
autorestart = true
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:callback-receiver]
|
|
{% if kube_dev | bool %}
|
|
command = make receiver
|
|
directory = /awx_devel
|
|
{% else %}
|
|
command = awx-manage run_callback_receiver
|
|
directory = /var/lib/awx
|
|
{% endif %}
|
|
autorestart = true
|
|
startsecs = 30
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
{% if kube_dev | bool %}
|
|
[program:awx-autoreload]
|
|
command = /awx_devel/tools/docker-compose/awx-autoreload /awx_devel/awx
|
|
autostart = true
|
|
autorestart = true
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
{% endif %}
|
|
|
|
[group:tower-processes]
|
|
programs=dispatcher,callback-receiver,wsrelay
|
|
priority=5
|
|
|
|
[eventlistener:superwatcher]
|
|
command=stop-supervisor
|
|
events=PROCESS_STATE_FATAL
|
|
autorestart = true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[unix_http_server]
|
|
file=/var/run/supervisor/supervisor.task.sock
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///var/run/supervisor/supervisor.task.sock ; use a unix:// URL for a unix socket
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|