Merge pull request #10990 from jumpserver/pr@dev@perf_gunicorn_max_request

perf: gunicon添加重启参数
pull/10996/head
老广 2023-07-18 11:02:58 +08:00 committed by GitHub
commit 1d6bdc9b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class GunicornService(BaseService):
'-b', bind,
'-k', 'uvicorn.workers.UvicornWorker',
'-w', str(self.worker),
'--max-requests', '40960',
'--max-requests', '10240',
'--max-requests-jitter', '2048',
'--access-logformat', log_format,
'--access-logfile', '-'
]