From bb12d3fe3fb0b41744614bad679ce30853f74f43 Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 27 Jan 2023 12:34:19 +0000 Subject: feat(dash): Tune production parameters Signed-off-by: pmikus Change-Id: I4e5546bcaebe1dd6094d4942c83122766559d572 --- csit.infra.dash/app/app.ini | 20 ++++++++++++++------ csit.infra.dash/do_release.sh | 2 +- csit.infra.dash/docker-compose.yaml | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/csit.infra.dash/app/app.ini b/csit.infra.dash/app/app.ini index 5484b5b9fc..2b56fdf83c 100644 --- a/csit.infra.dash/app/app.ini +++ b/csit.infra.dash/app/app.ini @@ -3,17 +3,25 @@ ini = :cdash py-autoreload = 0 [cdash] +strict = true +master = true +enable-threads = true +single-interpreter = true + module = wsgi:app master-fifo = /tmp/masterfifo lazy = True -lazy-apps = True +lazy-apps = true touch-chain-reload listen = 128 - -workers = 2 -plugin = python3 - -master = true http-socket = :5000 socket = /tmp/app.sock chmod-socket = 666 + +disable-logging = true +log-4xx = true +log-5xx = true + +workers = 1 +threads = 8 +plugin = python3 diff --git a/csit.infra.dash/do_release.sh b/csit.infra.dash/do_release.sh index 63aff04dca..2b49bd63b3 100755 --- a/csit.infra.dash/do_release.sh +++ b/csit.infra.dash/do_release.sh @@ -14,7 +14,7 @@ popd pushd "../fdio.infra.terraform/" pushd "terraform-aws-fdio-csit-dash-app-base" -export BUILD_ID=41 +export BUILD_ID=43 export TF_VAR_application_version="${BUILD_ID-}" export TF_LOG=INFO terraform validate diff --git a/csit.infra.dash/docker-compose.yaml b/csit.infra.dash/docker-compose.yaml index 990fe5b929..d709d3e264 100644 --- a/csit.infra.dash/docker-compose.yaml +++ b/csit.infra.dash/docker-compose.yaml @@ -2,7 +2,7 @@ version: "3.7" services: cdash: build: "." - command: "uwsgi --ini app.ini --workers 1" + command: "uwsgi --ini app.ini" environment: FLASK_DEBUG: 1 FLASK_ENV: "development" -- cgit 1.2.3-korg