mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-04 08:10:00 -04:00
Merge pull request #1877 from GSA/report_performance
try 60 seconds for timeout since we can't finish deploy for unknown r…
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
|
import logging
|
||||||
import os # noqa
|
import os # noqa
|
||||||
import socket # noqa
|
import socket # noqa
|
||||||
import sys # noqa
|
import sys # noqa
|
||||||
import traceback # noqa
|
import traceback # noqa
|
||||||
import logging
|
|
||||||
|
|
||||||
import gunicorn
|
import gunicorn
|
||||||
|
|
||||||
@@ -13,8 +13,8 @@ workers = 4
|
|||||||
worker_class = "gevent"
|
worker_class = "gevent"
|
||||||
worker_connections = 256
|
worker_connections = 256
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
logging.info(hilite("Gunicorn timeout set to 240 seconds"))
|
timeout = 60
|
||||||
timeout = 240
|
logging.info(hilite(f"Gunicorn timeout set to {timeout} seconds"))
|
||||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
||||||
gunicorn.SERVER_SOFTWARE = "None"
|
gunicorn.SERVER_SOFTWARE = "None"
|
||||||
|
|||||||
Reference in New Issue
Block a user