From a12136b2039bbc341b6d11ccc6e77d0791ef6f02 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Thu, 4 Jun 2015 14:15:21 -0700 Subject: [PATCH] Bump gunicorn worker timeout to 60 The default 30s worker timeout for gunicorn is not sufficient for some slower environments, as the metadata service takes a while to restart. This bumps it to 60s to ensure we dont fail config updates on worker timeouts. Change-Id: If27329b58d97e6aef687a069615dbda763dba8c1 Closes-bug: #1462100 --- ansible/templates/gunicorn.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/templates/gunicorn.j2 b/ansible/templates/gunicorn.j2 index 352f79c..6fda01e 100644 --- a/ansible/templates/gunicorn.j2 +++ b/ansible/templates/gunicorn.j2 @@ -2,6 +2,7 @@ import multiprocessing bind = '[::]:5000' workers = workers = multiprocessing.cpu_count() * 2 + 1 +timeout=60 backlog = 2048 worker_class ="sync" debug = False