From 1a577cea6ef280d4ef6ed95e8e0861f422dcdb01 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Thu, 6 Dec 2018 05:42:39 +0100 Subject: [PATCH] Drop wsgi thread configuration to a single thread We should increase concurrency using processes rather than threads for the Octavia WSGI application, avoiding high memory consumption over time under load. Change-Id: Ia4b0e6b6b364dc3c9cd2fa4cdfa93cd2766c4d6a Closes-Bug: #1806008 --- src/templates/rocky/octavia-api.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/rocky/octavia-api.conf b/src/templates/rocky/octavia-api.conf index c8fcddad..bdf136e5 100644 --- a/src/templates/rocky/octavia-api.conf +++ b/src/templates/rocky/octavia-api.conf @@ -5,7 +5,7 @@ Listen {{ options.service_listen_info.octavia_api.public_port }} # See https://cryptography.io/en/latest/faq/#starting-cryptography-using-mod-wsgi-produces-an-internalerror-during-a-call-in-register-osrandom-engine - WSGIDaemonProcess octavia-api user=octavia group=octavia processes=3 threads=10 + WSGIDaemonProcess octavia-api processes={{ options.wsgi_worker_context.processes }} threads=1 user=octavia group=octavia display-name=%{GROUP} WSGIProcessGroup octavia-api WSGIApplicationGroup %{GLOBAL} WSGIScriptAlias / /usr/bin/octavia-wsgi