perf: gunicon添加重启参数

pull/10990/head
ibuler 2023-07-18 10:44:12 +08:00
parent 0771b804d1
commit 6035241efb
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', '5120',
'--access-logformat', log_format,
'--access-logfile', '-'
]