зеркало из https://github.com/mozilla/kitsune.git
Update gunicorn for AWS
This commit is contained in:
Родитель
afe3f1ae30
Коммит
7855060b6a
|
@ -127,6 +127,11 @@ app:
|
|||
use_x_forwarded_host: True
|
||||
user_agent_filters: "360spider,semrushBot"
|
||||
wsgi_keep_alive: 60
|
||||
wsgi_timeout: 30
|
||||
wsgi_graceful_timeout: 10
|
||||
wsgi_worker_connections: 1000
|
||||
wsgi_max_requests: 1500
|
||||
wsgi_max_requests_jitter: 30
|
||||
disable_questions_list_global: False
|
||||
disable_questions_list_all: False
|
||||
disable_feeds: False
|
||||
|
|
|
@ -133,8 +133,13 @@ app:
|
|||
surveygizmo_api_token: SECRET
|
||||
surveygizmo_api_token_secret: SECRET
|
||||
user_agent_filters: "360spider,semrushbot,coccobot,dotbot"
|
||||
wsgi_num_workers: 3
|
||||
wsgi_keep_alive: 60
|
||||
wsgi_num_workers: 4
|
||||
wsgi_timeout: 30
|
||||
wsgi_graceful_timeout: 10
|
||||
wsgi_worker_connections: 1000
|
||||
wsgi_max_requests: 1500
|
||||
wsgi_max_requests_jitter: 30
|
||||
disable_questions_list_global: False
|
||||
disable_questions_list_all: False
|
||||
disable_feeds: False
|
||||
|
|
|
@ -13,7 +13,7 @@ worker_class = getenv("GUNICORN_WORKER_CLASS", "gevent")
|
|||
reload = getenv("DEV", False)
|
||||
# improve fairness
|
||||
reuse_port = getenv("WSGI_REUSE_PORT", True)
|
||||
keepalive = int(getenv("WSGI_KEEP_ALIVE", 620))
|
||||
keepalive = int(getenv("WSGI_KEEP_ALIVE", 60))
|
||||
timeout = int(getenv("WSGI_TIMEOUT", 30))
|
||||
graceful_timeout = int(getenv("WSGI_GRACEFUL_TIMEOUT", 10))
|
||||
worker_connections = int(getenv("WSGI_WORKER_CONNECTIONS", 1000))
|
||||
|
|
Загрузка…
Ссылка в новой задаче