This commit is contained in:
Tasos Katsoulas 2022-12-14 18:39:40 +02:00
Родитель afe3f1ae30
Коммит 7855060b6a
3 изменённых файлов: 13 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -11,9 +11,9 @@ errorlog = "-"
loglevel = getenv("WSGI_LOG_LEVEL", "info")
worker_class = getenv("GUNICORN_WORKER_CLASS", "gevent")
reload = getenv("DEV", False)
# improve fairness
# 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))