feat: gunicorn启动使用gthread (#882)
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2024-07-26 18:58:01 +08:00 committed by GitHub
parent fbaac3c230
commit 1979cf12c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,10 +36,8 @@ class Command(BaseCommand):
cmd = [
'gunicorn', 'smartdoc.wsgi:application',
'-b', options.get('b') if options.get('b') is not None else '0.0.0.0:8080',
'-k', options.get('k') if options.get('k') is not None else 'gevent',
'--threads', options.get('threads') if options.get('threads') is not None else '30',
'--worker-connections',
options.get('worker_connections') if options.get('worker_connections') is not None else '100',
'-k', options.get('k') if options.get('k') is not None else 'gthread',
'--threads', options.get('threads') if options.get('threads') is not None else '200',
'-w', options.get('w') if options.get('w') is not None else '1',
'--max-requests', options.get('max_requests') if options.get('max_requests') is not None else '10240',
'--max-requests-jitter',