-
Notifications
You must be signed in to change notification settings - Fork 5
/
supervisord.conf
85 lines (68 loc) · 2.14 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[supervisord]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[program:webserver]
command=gunicorn -p 8000 -b 0.0.0.0 -t 600 -w 4 bcmr.wsgi:application
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup=true
[program:celery_worker_beat]
command = celery -A bcmr worker --beat -l INFO -c 1 -Ofair -Q beat -n beat.worker
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup = true
[program:celery__resolve_metadata]
command= celery -A bcmr worker -n resolve_metadata -l INFO -Ofair -Q resolve_metadata --max-tasks-per-child=100 --autoscale=1,2
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup=true
[program:block_scanner]
directory = /code
command = python manage.py block_scanner
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup=true
[program:celery__mempool_worker]
command= celery -A bcmr worker -n mempool_worker -l INFO -Ofair -Q mempool_worker_queue --max-tasks-per-child=100 --autoscale=1,2
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup=true
[program:bchn_zmq_listener]
directory = /code
command = python manage.py mempool_listener
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:celery__watch_registry_changes]
command= celery -A bcmr worker -n watch_registry_changes -l INFO -Ofair -Q watch_registry_changes --max-tasks-per-child=100 --autoscale=1,2
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stopasgroup=true