mirror of https://github.com/jumpserver/jumpserver
[Update] 使用gthread替代eventlet
parent
6dc2272a26
commit
b022bf36ba
2
jms
2
jms
|
@ -123,6 +123,8 @@ def start_gunicorn():
|
||||||
'gunicorn', 'jumpserver.wsgi',
|
'gunicorn', 'jumpserver.wsgi',
|
||||||
'-b', bind,
|
'-b', bind,
|
||||||
#'-k', 'eventlet',
|
#'-k', 'eventlet',
|
||||||
|
'-k', 'gthread',
|
||||||
|
'--threads', '10',
|
||||||
'-w', str(WORKERS),
|
'-w', str(WORKERS),
|
||||||
'--access-logformat', log_format,
|
'--access-logformat', log_format,
|
||||||
'-p', pid_file,
|
'-p', pid_file,
|
||||||
|
|
Loading…
Reference in New Issue