mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: set timeout for workers.
This commit is contained in:
parent
a1507c1e44
commit
aa269c114a
|
|
@ -26,6 +26,8 @@ class GunicornService(BaseService):
|
|||
'-w', str(self.worker),
|
||||
'--max-requests', '10240',
|
||||
'--max-requests-jitter', '2048',
|
||||
'--timeout', '0',
|
||||
'--graceful_timeout', '0',
|
||||
'--access-logformat', log_format,
|
||||
'--access-logfile', '/dev/null',
|
||||
'--error-logfile', '-'
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ class GunicornLocalModelService(BaseService):
|
|||
'-w', str(worker),
|
||||
'--max-requests', str(max_requests),
|
||||
'--max-requests-jitter', '2048',
|
||||
'--timeout', '0',
|
||||
'--graceful_timeout', '0',
|
||||
'--access-logformat', log_format,
|
||||
'--access-logfile', '/dev/null',
|
||||
'--error-logfile', '-'
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ class SchedulerService(BaseService):
|
|||
'-w', str(self.worker),
|
||||
'--max-requests', str(max_requests),
|
||||
'--max-requests-jitter', '2048',
|
||||
'--timeout', '0',
|
||||
'--graceful_timeout', '0',
|
||||
'--access-logformat', log_format,
|
||||
'--access-logfile', '/dev/null',
|
||||
'--error-logfile', '-'
|
||||
|
|
|
|||
Loading…
Reference in New Issue