More work on configs and env
This commit is contained in:
@@ -22,9 +22,9 @@ wsgi_app = "run_server:app"
|
||||
# default_proc_name = "run_server:app"
|
||||
|
||||
# Setting a longer timeout since some Flask app requests may take a while
|
||||
timeout = 1200 # default 30; worker process silent then kill and restart
|
||||
graceful_timeout = 20
|
||||
keepalive = 300 # default 2; setting higher because behind load balancer (nginx)
|
||||
timeout = os.getenv('AE_APP_GUNICORN_TIMEOUT', 1200) # default 30; worker process silent then kill and restart
|
||||
graceful_timeout = os.getenv('AE_APP_GUNICORN_GRACEFUL_TIMEOUT', 20)
|
||||
keepalive = os.getenv('AE_APP_GUNICORN_KEEPALIVE', 300) # default 2; setting higher because behind load balancer (nginx)
|
||||
|
||||
# Disable reload if using more than one thread
|
||||
reload = True
|
||||
@@ -33,8 +33,8 @@ reload = True
|
||||
# Works are processes, not threads
|
||||
# workers = 9 # default 1; use 10ish for production; 2 to 4 times the number of cores
|
||||
# threads = 1 # default 1; only affects Gthread worker type
|
||||
workers = os.getenv('AE_APP_WORKERS', 2)
|
||||
threads = os.getenv('AE_APP_THREADS', 2)
|
||||
workers = os.getenv('AE_APP_GUNICORN_WORKERS', 2)
|
||||
threads = os.getenv('AE_APP_GUNICORN_THREADS', 2)
|
||||
|
||||
# umask = '007'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user