Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ bug ] qcluster 未知原因退出 #224

Closed
LeoQuote opened this issue May 28, 2019 · 3 comments
Closed

[ bug ] qcluster 未知原因退出 #224

LeoQuote opened this issue May 28, 2019 · 3 comments
Labels
area/docker area/qcluster bug Something isn't working

Comments

@LeoQuote
Copy link
Collaborator

在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ

重现步骤

目前没有复现步骤。
在部署后偶尔出现qcluster掉线的问题,进程也没有了,导致所有查询超时

期待结果和实际结果

期待结果:

实际结果:

截图

错误日志

日志中仅有qcluster stopping

版本信息

应用版本/分支:
master
部署方式:Docker、手工部署
手工部署

@hhyo
Copy link
Owner

hhyo commented May 28, 2019

可以修改成supervisord管理或者单独docker镜像

@LeoQuote
Copy link
Collaborator Author

弄了个supervisor ,可以把配置文件放代码里

[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default /supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false               ; (start in foreground if true;default false)
minfds=1024                  ; (min. avail startup file descriptors;default 1024)
minprocs=200                 ; (min. avail process descriptors;default 200)


[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket


[program:qcluster]
command=python manage.py qcluster            ; the program (relative uses PATH, can take args)
directory=/home/work/archery                ; directory to cwd to before exec (def no cwd)
umask=022                     ; umask for process (default None)
autorestart=true ; 总是重启, 不论退出时的exitcode是多少
stopwaitsecs=10               ; max num secs to wait b4 SIGKILL (default 10)
stopasgroup=true             ; send stop signal to the UNIX process group (default false)
killasgroup=true             ; SIGKILL the UNIX process group (def false)
user=work                   ; setuid to this UNIX account to run the program
redirect_stderr=true          ; redirect proc stderr to stdout (default false)
priority=999                  ; the relative start priority (default 999)

@LeoQuote
Copy link
Collaborator Author

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker area/qcluster bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants