-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsupervisord.conf
38 lines (28 loc) · 1.3 KB
/
supervisord.conf
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
# supervisord.ini file for mediacloud web-search this launches and
# supervises all process_tasks workers in a single container.
[unix_http_server]
file=/var/tmp/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
nodaemon=true
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:syslog]
command= python -m mcweb.backend.util.syslog-sink
[program:system-slow-worker]
command= python mcweb/manage.py process_tasks --queue system-slow
[program:system-fast-worker]
command= python mcweb/manage.py process_tasks --queue system-fast
[program:admin-slow-worker]
command= python mcweb/manage.py process_tasks --queue admin-slow
[program:admin-fast-worker]
command= python mcweb/manage.py process_tasks --queue admin-fast
[program:user-slow-worker]
command= python mcweb/manage.py process_tasks --queue user-slow
[program:user-fast-worker]
command= python mcweb/manage.py process_tasks --queue user-fast