From cc3b2f1ab9b6d97010ff64606fb05d0a0c4a2c61 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 25 Jun 2018 11:23:51 +0100 Subject: [PATCH] disable gunicorn access logs they're turning up in syslog, which means they're getting into kibana now also move config settings from manifest to gunicorn_config.py --- gunicorn_config.py | 7 +++++++ manifest-base.yml | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gunicorn_config.py b/gunicorn_config.py index 11993ab78..1d3ed6324 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -1,6 +1,13 @@ +import os import sys import traceback +workers = 5 +worker_class = "eventlet" +errorlog = "/home/vcap/logs/gunicorn_error.log" +bind = "0.0.0.0:{}".format(os.getenv("PORT")) +disable_redirect_access_to_syslog = True + def worker_abort(worker): worker.log.info("worker received ABORT") diff --git a/manifest-base.yml b/manifest-base.yml index 9a0705e75..1fc6e24bf 100644 --- a/manifest-base.yml +++ b/manifest-base.yml @@ -5,10 +5,6 @@ command: > scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py - --error-logfile /home/vcap/logs/gunicorn_error.log - -w 5 - -b 0.0.0.0:$PORT - -k eventlet application instances: 1