From 1979cf12c4c902306234d85b2362355b03a191ab Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:58:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gunicorn=E5=90=AF=E5=8A=A8=E4=BD=BF?= =?UTF-8?q?=E7=94=A8gthread=20(#882)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/management/commands/gunicorn.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/common/management/commands/gunicorn.py b/apps/common/management/commands/gunicorn.py index 77e0f2b0b..0d4f86438 100644 --- a/apps/common/management/commands/gunicorn.py +++ b/apps/common/management/commands/gunicorn.py @@ -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',