mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
0e97dc4b84
* use embedded beat rather than standalone * dynamically set celeryd hostname at runtime * add embeded beat flag to celery startup * Embedded beat mode routes will piggyback off of celery worker setup signal
82 lines
1.8 KiB
Plaintext
82 lines
1.8 KiB
Plaintext
[supervisord]
|
|
umask = 022
|
|
minfds = 4096
|
|
nodaemon=true
|
|
|
|
[program:celeryd]
|
|
command = celery worker -A awx -l DEBUG -B --autoscale=20,3 -Ofair -s /var/lib/awx/beat.db -Q tower_broadcast_all -n celery@%(ENV_HOSTNAME)s
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:receiver]
|
|
command = python manage.py run_callback_receiver
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:runworker]
|
|
command = python manage.py runworker --only-channels websocket.*
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:uwsgi]
|
|
command = make uwsgi
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:daphne]
|
|
command = daphne -b 0.0.0.0 -p 8051 awx.asgi:channel_layer
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:nginx]
|
|
command = nginx -g "daemon off;"
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:flower]
|
|
command = make flower
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[program:jupyter]
|
|
command = make jupyter
|
|
autostart = true
|
|
autorestart = true
|
|
redirect_stderr=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
|
|
[group:awx-processes]
|
|
programs=celeryd,receiver,runworker,uwsgi,daphne,nginx,flower
|
|
priority=5
|
|
|
|
[unix_http_server]
|
|
file=/tmp/supervisor.sock
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|