Restart workers after a given number of requests
This commit is contained in:
parent
ca835a33b4
commit
da89510eee
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ accesslog = "-"
|
||||||
disable_redirect_access_to_syslog = True
|
disable_redirect_access_to_syslog = True
|
||||||
preload_app = True
|
preload_app = True
|
||||||
bind = "0.0.0.0"
|
bind = "0.0.0.0"
|
||||||
|
max_requests = 1200
|
||||||
|
max_requests_jitter = 100
|
||||||
|
|
||||||
# Replace gunicorn's 'Server' HTTP header
|
# Replace gunicorn's 'Server' HTTP header
|
||||||
gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"
|
gunicorn.SERVER_SOFTWARE = gunicorn.SERVER = "Wouldn't you like to know"
|
||||||
|
|
Loading…
Reference in a new issue