mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 07:31:28 -04:00
Merge pull request #2797 from GSA/report_performance
change gunicorn timeout to 240 seconds
This commit is contained in:
@@ -2,7 +2,8 @@ import multiprocessing
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import logging
|
||||
from app.utils import hilite
|
||||
import gunicorn
|
||||
|
||||
# Let gunicorn figure out the right number of workers
|
||||
@@ -11,6 +12,10 @@ import gunicorn
|
||||
# so adjust it.
|
||||
workers = multiprocessing.cpu_count()
|
||||
worker_class = "gevent"
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logging.info(hilite("Gunicorn timeout set to 240 seconds"))
|
||||
timeout = 240
|
||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||
disable_redirect_access_to_syslog = True
|
||||
gunicorn.SERVER_SOFTWARE = "None"
|
||||
|
||||
Reference in New Issue
Block a user