Spaces:
Running
Running
Update supervisord.conf
Browse files- supervisord.conf +12 -6
supervisord.conf
CHANGED
|
@@ -5,6 +5,8 @@ logfile=/dev/null
|
|
| 5 |
logfile_maxbytes=0
|
| 6 |
pidfile=/tmp/supervisord.pid
|
| 7 |
loglevel=info
|
|
|
|
|
|
|
| 8 |
|
| 9 |
[supervisorctl]
|
| 10 |
serverurl=unix:///tmp/supervisor.sock
|
|
@@ -21,8 +23,8 @@ command=python /app/websocket_hub.py
|
|
| 21 |
directory=/app
|
| 22 |
autostart=true
|
| 23 |
autorestart=true
|
| 24 |
-
startsecs=
|
| 25 |
-
startretries=
|
| 26 |
stopwaitsecs=10
|
| 27 |
stopasgroup=true
|
| 28 |
killasgroup=true
|
|
@@ -31,13 +33,14 @@ stdout_logfile_maxbytes=0
|
|
| 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
|
| 38 |
autostart=true
|
| 39 |
autorestart=true
|
| 40 |
-
startsecs=
|
| 41 |
startretries=10
|
| 42 |
stopwaitsecs=10
|
| 43 |
stopasgroup=true
|
|
@@ -47,14 +50,16 @@ stdout_logfile_maxbytes=0
|
|
| 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
|
| 54 |
autostart=true
|
| 55 |
autorestart=true
|
| 56 |
-
startsecs=
|
| 57 |
-
startretries=
|
| 58 |
stopwaitsecs=10
|
| 59 |
stopasgroup=true
|
| 60 |
killasgroup=true
|
|
@@ -62,7 +67,8 @@ stdout_logfile=/dev/stdout
|
|
| 62 |
stdout_logfile_maxbytes=0
|
| 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=
|
|
|
|
| 66 |
|
| 67 |
[group:space]
|
| 68 |
programs=app,worker1,dashboard
|
|
|
|
| 5 |
logfile_maxbytes=0
|
| 6 |
pidfile=/tmp/supervisord.pid
|
| 7 |
loglevel=info
|
| 8 |
+
minfds=1024
|
| 9 |
+
minprocs=200
|
| 10 |
|
| 11 |
[supervisorctl]
|
| 12 |
serverurl=unix:///tmp/supervisor.sock
|
|
|
|
| 23 |
directory=/app
|
| 24 |
autostart=true
|
| 25 |
autorestart=true
|
| 26 |
+
startsecs=3
|
| 27 |
+
startretries=5
|
| 28 |
stopwaitsecs=10
|
| 29 |
stopasgroup=true
|
| 30 |
killasgroup=true
|
|
|
|
| 33 |
stderr_logfile=/dev/stderr
|
| 34 |
stderr_logfile_maxbytes=0
|
| 35 |
environment=PORT=7860,DASHBOARD_HTML=/app/hub_dashboard.html,PYTHONUNBUFFERED=1
|
| 36 |
+
priority=1
|
| 37 |
|
| 38 |
[program:worker1]
|
| 39 |
command=python /app/Quasar_axrvi_ranker.py --hub ws://localhost:7860/ws/subscribe --sync
|
| 40 |
directory=/app
|
| 41 |
autostart=true
|
| 42 |
autorestart=true
|
| 43 |
+
startsecs=10
|
| 44 |
startretries=10
|
| 45 |
stopwaitsecs=10
|
| 46 |
stopasgroup=true
|
|
|
|
| 50 |
stderr_logfile=/dev/stderr
|
| 51 |
stderr_logfile_maxbytes=0
|
| 52 |
environment=PYTHONUNBUFFERED=1
|
| 53 |
+
priority=2
|
| 54 |
+
depends_on=app
|
| 55 |
|
| 56 |
[program:dashboard]
|
| 57 |
command=python3 /app/hub_dashboard_service.py
|
| 58 |
directory=/app
|
| 59 |
autostart=true
|
| 60 |
autorestart=true
|
| 61 |
+
startsecs=3
|
| 62 |
+
startretries=5
|
| 63 |
stopwaitsecs=10
|
| 64 |
stopasgroup=true
|
| 65 |
killasgroup=true
|
|
|
|
| 67 |
stdout_logfile_maxbytes=0
|
| 68 |
stderr_logfile=/dev/stderr
|
| 69 |
stderr_logfile_maxbytes=0
|
| 70 |
+
environment=PYTHONUNBUFFERED=1,DASHBOARD_HTML=/app/hub_dashboard.html,RANKER_LOG_DIR=/app/ranker_logs,DASHBOARD_PORT=8052
|
| 71 |
+
priority=3
|
| 72 |
|
| 73 |
[group:space]
|
| 74 |
programs=app,worker1,dashboard
|