File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ def to_bool(val) -> bool:
76
76
GUNICORN_WORKER_CLASS = register_variable (str , "GUNICORN_WORKER_CLASS" , "gevent" )
77
77
GUNICORN_WORKER_COUNT = register_variable (int , "GUNICORN_WORKER_COUNT" , 3 )
78
78
GUNICORN_WORKER_TIMEOUT = register_variable (int , "GUNICORN_WORKER_TIMEOUT" , 30 )
79
+ GUNICORN_WORKER_CONNECTIONS = register_variable (
80
+ int , "GUNICORN_WORKER_CONNECTIONS" , 1000
81
+ )
79
82
GUNICORN_LOG_LEVEL = register_variable (str , "GUNICORN_LOG_LEVEL" , "info" )
80
83
GUNICORN_MAX_REQUESTS = register_variable (int , "GUNICORN_MAX_REQUESTS" , 10000 )
81
84
GUNICORN_MAX_REQUESTS_JITTER = register_variable (
@@ -121,6 +124,8 @@ def run_gunicorn() -> None:
121
124
GUNICORN_MAX_REQUESTS ,
122
125
"--max-requests-jitter" ,
123
126
GUNICORN_MAX_REQUESTS_JITTER ,
127
+ "--worker-connections" ,
128
+ GUNICORN_WORKER_CONNECTIONS ,
124
129
"-w" ,
125
130
GUNICORN_WORKER_COUNT ,
126
131
"-t" ,
You can’t perform that action at this time.
0 commit comments