Skip to content
Permalink
Browse files
Update gunicorn for AWS
  • Loading branch information
akatsoulas committed Dec 15, 2022
1 parent afe3f1a commit 7855060
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
@@ -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 @@
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))

0 comments on commit 7855060

Please sign in to comment.