File tree 2 files changed +4
-2
lines changed
common/management/commands/services/services
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,13 @@ def cmd(self):
24
24
os .environ .setdefault ('SERVER_NAME' , 'local_model' )
25
25
log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s '
26
26
bind = f'{ CONFIG .get ("LOCAL_MODEL_HOST" )} :{ CONFIG .get ("LOCAL_MODEL_PORT" )} '
27
+ worker = CONFIG .get ("LOCAL_MODEL_HOST_WORKER" , 1 )
27
28
cmd = [
28
29
'gunicorn' , 'smartdoc.wsgi:application' ,
29
30
'-b' , bind ,
30
31
'-k' , 'gthread' ,
31
32
'--threads' , '200' ,
32
- '-w' , "1" ,
33
+ '-w' , worker ,
33
34
'--max-requests' , '10240' ,
34
35
'--max-requests-jitter' , '2048' ,
35
36
'--access-logformat' , log_format ,
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ class Config(dict):
93
93
'SANDBOX' : False ,
94
94
'LOCAL_MODEL_HOST' : '127.0.0.1' ,
95
95
'LOCAL_MODEL_PORT' : '11636' ,
96
- 'LOCAL_MODEL_PROTOCOL' : "http"
96
+ 'LOCAL_MODEL_PROTOCOL' : "http" ,
97
+ 'LOCAL_MODEL_HOST_WORKER' : 1
97
98
98
99
}
99
100
You can’t perform that action at this time.
0 commit comments