OnlineJudge/deploy/supervisord.conf

52 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2017-10-23 02:47:26 +00:00
[supervisord]
logfile=/data/log/supervisord.log
2017-10-23 02:47:26 +00:00
logfile_maxbytes=10MB
logfile_backups=10
loglevel=info
pidfile=/tmp/supervisord.pid
nodaemon=true
childlogdir=/data/log/
[inet_http_server]
port=127.0.0.1:9005
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
2017-10-23 02:47:26 +00:00
[supervisorctl]
serverurl=http://127.0.0.1:9005
2017-10-23 02:47:26 +00:00
2017-11-24 19:37:40 +00:00
[program:nginx]
2017-11-25 04:30:00 +00:00
command=nginx -c /app/deploy/nginx/nginx.conf
2017-11-24 19:37:40 +00:00
directory=/app/
stdout_logfile=/data/log/nginx.log
stderr_logfile=/data/log/nginx.log
2017-11-24 19:37:40 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
killasgroup=true
2017-10-23 02:47:26 +00:00
[program:gunicorn]
command=gunicorn oj.wsgi --user server --group spj --bind 127.0.0.1:8080 --workers %(ENV_MAX_WORKER_NUM)s --threads 4 --max-requests-jitter 10000 --max-requests 1000000 --keep-alive 32
2017-10-23 02:47:26 +00:00
directory=/app/
stdout_logfile=/data/log/gunicorn.log
stderr_logfile=/data/log/gunicorn.log
2017-10-23 02:47:26 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
killasgroup=true
2019-03-11 08:21:29 +00:00
[program:dramatiq]
2022-05-08 09:13:22 +00:00
command=python3 manage.py rundramatiq --processes %(ENV_MAX_WORKER_NUM)s --threads 4
2017-10-23 02:47:26 +00:00
directory=/app/
user=nobody
2019-03-11 08:21:29 +00:00
stdout_logfile=/data/log/dramatiq.log
stderr_logfile=/data/log/dramatiq.log
2017-10-23 02:47:26 +00:00
autostart=true
autorestart=true
startsecs=5
stopwaitsecs = 5
2017-10-23 12:59:44 +00:00
killasgroup=true