forked from FuzzyGrim/Yamtrack
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathsupervisord.conf
More file actions
65 lines (60 loc) · 2.76 KB
/
Copy pathsupervisord.conf
File metadata and controls
65 lines (60 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[supervisord]
nodaemon=true
user=root
environment=PATH="/opt/venv/bin:%(ENV_PATH)s",VIRTUAL_ENV="/opt/venv"
[program:nginx]
command=sh -c 'if [ "${FLOPPY_IPV6_ENABLED:-${YAMTRACK_IPV6_ENABLED:-False}}" = "True" ]; then CONF=/etc/nginx/nginx.ipv6.conf; else CONF=/etc/nginx/nginx.conf; fi; nginx -c $CONF -g "daemon off;"'
user=root
priority=1
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:gunicorn]
command=gunicorn --control-socket /tmp/gunicorn.ctl --config python:config.gunicorn config.wsgi:application
user=abc
priority=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes=0
; The default worker's queue set widens on constrained hosts, absorbing the
; discover (and on minimal hosts the interactive) queue so those workers - each
; a whole resident Django import - don't have to run. entrypoint.sh sets these
; from config/runtime_profile.py; the shell defaults keep this working if
; supervisord is invoked directly.
[program:celery]
command=sh -c 'if [ "${ENV_DEBUG:-False}" = "True" ]; then LOGLEVEL=DEBUG; else LOGLEVEL=INFO; fi; echo "[supervisord] starting celery background queues=${FLOPPY_CELERY_QUEUES:-celery}"; exec celery --app config worker --beat --scheduler django --queues "${FLOPPY_CELERY_QUEUES:-celery}" --hostname=celery@%%h --loglevel $LOGLEVEL --without-mingle --without-gossip'
environment=FLOPPY_PROCESS_ROLE="%(ENV_FLOPPY_CELERY_ROLE)s"
user=abc
stopasgroup=true
stopwaitsecs=60
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes=0
[program:celery-interactive]
command=sh -c 'if [ "${ENV_DEBUG:-False}" = "True" ]; then LOGLEVEL=DEBUG; else LOGLEVEL=INFO; fi; echo "[supervisord] starting celery-interactive queues=interactive"; exec celery --app config worker --queues interactive --hostname=celery-interactive@%%h --loglevel $LOGLEVEL --without-mingle --without-gossip'
environment=FLOPPY_PROCESS_ROLE="interactive"
autostart=%(ENV_FLOPPY_START_INTERACTIVE_WORKER)s
user=abc
stopasgroup=true
stopwaitsecs=60
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes=0
[program:celery-discover]
command=sh -c 'if [ "${ENV_DEBUG:-False}" = "True" ]; then LOGLEVEL=DEBUG; else LOGLEVEL=INFO; fi; echo "[supervisord] starting celery-discover queues=discover"; exec celery --app config worker --queues discover --hostname=celery-discover@%%h --loglevel $LOGLEVEL --without-mingle --without-gossip'
environment=FLOPPY_PROCESS_ROLE="background"
autostart=%(ENV_FLOPPY_START_DISCOVER_WORKER)s
user=abc
stopasgroup=true
stopwaitsecs=60
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes=0