Spaces:
Running
Running
Update supervisord.conf
Browse files- supervisord.conf +11 -1
supervisord.conf
CHANGED
|
@@ -5,13 +5,17 @@ logfile=/dev/null
|
|
| 5 |
logfile_maxbytes=0
|
| 6 |
pidfile=/tmp/supervisord.pid
|
| 7 |
loglevel=info
|
|
|
|
| 8 |
[supervisorctl]
|
| 9 |
serverurl=unix:///tmp/supervisor.sock
|
|
|
|
| 10 |
[unix_http_server]
|
| 11 |
file=/tmp/supervisor.sock
|
| 12 |
chmod=0700
|
|
|
|
| 13 |
[rpcinterface:supervisor]
|
| 14 |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
| 15 |
[program:app]
|
| 16 |
command=python /app/websocket_hub.py
|
| 17 |
directory=/app
|
|
@@ -19,6 +23,7 @@ autostart=true
|
|
| 19 |
autorestart=true
|
| 20 |
startsecs=5
|
| 21 |
startretries=10
|
|
|
|
| 22 |
stopasgroup=true
|
| 23 |
killasgroup=true
|
| 24 |
stdout_logfile=/dev/stdout
|
|
@@ -26,6 +31,7 @@ stdout_logfile_maxbytes=0
|
|
| 26 |
stderr_logfile=/dev/stderr
|
| 27 |
stderr_logfile_maxbytes=0
|
| 28 |
environment=PORT=7860,DASHBOARD_HTML=/app/hub_dashboard.html,PYTHONUNBUFFERED=1
|
|
|
|
| 29 |
[program:worker1]
|
| 30 |
command=python /app/Quasar_axrvi_ranker.py --hub ws://localhost:7860/ws/subscribe --sync
|
| 31 |
directory=/app
|
|
@@ -33,6 +39,7 @@ autostart=true
|
|
| 33 |
autorestart=true
|
| 34 |
startsecs=5
|
| 35 |
startretries=10
|
|
|
|
| 36 |
stopasgroup=true
|
| 37 |
killasgroup=true
|
| 38 |
stdout_logfile=/dev/stdout
|
|
@@ -40,6 +47,7 @@ stdout_logfile_maxbytes=0
|
|
| 40 |
stderr_logfile=/dev/stderr
|
| 41 |
stderr_logfile_maxbytes=0
|
| 42 |
environment=PYTHONUNBUFFERED=1
|
|
|
|
| 43 |
[program:dashboard]
|
| 44 |
command=python3 /app/hub_dashboard_service.py
|
| 45 |
directory=/app
|
|
@@ -47,6 +55,7 @@ autostart=true
|
|
| 47 |
autorestart=true
|
| 48 |
startsecs=5
|
| 49 |
startretries=10
|
|
|
|
| 50 |
stopasgroup=true
|
| 51 |
killasgroup=true
|
| 52 |
stdout_logfile=/dev/stdout
|
|
@@ -54,6 +63,7 @@ stdout_logfile_maxbytes=0
|
|
| 54 |
stderr_logfile=/dev/stderr
|
| 55 |
stderr_logfile_maxbytes=0
|
| 56 |
environment=PYTHONUNBUFFERED=1,DASHBOARD_HTML=/app/hub_dashboard.html,RANKER_LOG_DIR=/app/ranker_logs,DASHBOARD_PORT=8051
|
|
|
|
| 57 |
[group:space]
|
| 58 |
programs=app,worker1,dashboard
|
| 59 |
-
priority=999
|
|
|
|
| 5 |
logfile_maxbytes=0
|
| 6 |
pidfile=/tmp/supervisord.pid
|
| 7 |
loglevel=info
|
| 8 |
+
|
| 9 |
[supervisorctl]
|
| 10 |
serverurl=unix:///tmp/supervisor.sock
|
| 11 |
+
|
| 12 |
[unix_http_server]
|
| 13 |
file=/tmp/supervisor.sock
|
| 14 |
chmod=0700
|
| 15 |
+
|
| 16 |
[rpcinterface:supervisor]
|
| 17 |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
| 18 |
+
|
| 19 |
[program:app]
|
| 20 |
command=python /app/websocket_hub.py
|
| 21 |
directory=/app
|
|
|
|
| 23 |
autorestart=true
|
| 24 |
startsecs=5
|
| 25 |
startretries=10
|
| 26 |
+
stopwaitsecs=10
|
| 27 |
stopasgroup=true
|
| 28 |
killasgroup=true
|
| 29 |
stdout_logfile=/dev/stdout
|
|
|
|
| 31 |
stderr_logfile=/dev/stderr
|
| 32 |
stderr_logfile_maxbytes=0
|
| 33 |
environment=PORT=7860,DASHBOARD_HTML=/app/hub_dashboard.html,PYTHONUNBUFFERED=1
|
| 34 |
+
|
| 35 |
[program:worker1]
|
| 36 |
command=python /app/Quasar_axrvi_ranker.py --hub ws://localhost:7860/ws/subscribe --sync
|
| 37 |
directory=/app
|
|
|
|
| 39 |
autorestart=true
|
| 40 |
startsecs=5
|
| 41 |
startretries=10
|
| 42 |
+
stopwaitsecs=10
|
| 43 |
stopasgroup=true
|
| 44 |
killasgroup=true
|
| 45 |
stdout_logfile=/dev/stdout
|
|
|
|
| 47 |
stderr_logfile=/dev/stderr
|
| 48 |
stderr_logfile_maxbytes=0
|
| 49 |
environment=PYTHONUNBUFFERED=1
|
| 50 |
+
|
| 51 |
[program:dashboard]
|
| 52 |
command=python3 /app/hub_dashboard_service.py
|
| 53 |
directory=/app
|
|
|
|
| 55 |
autorestart=true
|
| 56 |
startsecs=5
|
| 57 |
startretries=10
|
| 58 |
+
stopwaitsecs=10
|
| 59 |
stopasgroup=true
|
| 60 |
killasgroup=true
|
| 61 |
stdout_logfile=/dev/stdout
|
|
|
|
| 63 |
stderr_logfile=/dev/stderr
|
| 64 |
stderr_logfile_maxbytes=0
|
| 65 |
environment=PYTHONUNBUFFERED=1,DASHBOARD_HTML=/app/hub_dashboard.html,RANKER_LOG_DIR=/app/ranker_logs,DASHBOARD_PORT=8051
|
| 66 |
+
|
| 67 |
[group:space]
|
| 68 |
programs=app,worker1,dashboard
|
| 69 |
+
priority=999
|