We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed14074 commit 1600160Copy full SHA for 1600160
apps/common/management/commands/services/services/local_model.py
@@ -27,13 +27,14 @@ def cmd(self):
27
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
28
bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}'
29
worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1)
30
+ max_requests = 10240 if worker > 1 else 0
31
cmd = [
32
'gunicorn', 'maxkb.wsgi:application',
33
'-b', bind,
34
'-k', 'gthread',
35
'--threads', '200',
36
'-w', str(worker),
- '--max-requests', '10240',
37
+ '--max-requests', str(max_requests),
38
'--max-requests-jitter', '2048',
39
'--access-logformat', log_format,
40
'--access-logfile', '/dev/null',
0 commit comments