From 7d3138f8d5c06a4aa64fff841d62fc6fad38ad15 Mon Sep 17 00:00:00 2001
From: Tanner Prestegard <tanner.prestegard@ligo.org>
Date: Thu, 28 Mar 2019 21:42:17 -0500
Subject: [PATCH] Increase gunicorn keep-alive timeout for AWS deployment

Suggested keepalive time is 1-5 seconds for standard deployment,
but it should be much higher for deployments behind a load
balancer. We are hoping this might resolve the SSLEOFErrors which
have been seen on the AWS deployment.  Traefik's keepalive time
is hard-coded to 90 seconds so we want gunicorn's to be longer than
that, so we set it to 100 s.
---
 docker/supervisord-apache2.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/supervisord-apache2.conf b/docker/supervisord-apache2.conf
index 421ae6e64..0e0cea3f7 100644
--- a/docker/supervisord-apache2.conf
+++ b/docker/supervisord-apache2.conf
@@ -6,7 +6,7 @@ redirect_stderr=true
 priority=3
 
 [program:gracedb]
-command=/usr/local/bin/gunicorn config.wsgi:application --reload --config /app/gracedb_project/config/gunicorn_config.py --error-logfile='-' --access-logfile='-'
+command=/usr/local/bin/gunicorn config.wsgi:application --reload --config /app/gracedb_project/config/gunicorn_config.py --error-logfile='-' --access-logfile='-' --keep-alive=100
 directory=/app/gracedb_project
 user=gracedb
 group=www-data
-- 
GitLab