From b97a60e90c46c101b6c2c9a5dbf42140bd8bb8d1 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Fri, 3 Jun 2016 15:59:11 -0500 Subject: [PATCH] Keystone uwsgi performance tuning I ran some tests locally that showed that when using the uwsgi deploy the keystone server wasn't using all the processes available. When I switched from "threads" to "processes" the concurrent performance improved considerably. So I'm proposing that devstack switch to processes to improve performance. Change-Id: I8cfe9272e098e636441b7cfb51bff08d62c3336e --- lib/keystone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/keystone b/lib/keystone index c94bcd3a71..26fa1d43da 100644 --- a/lib/keystone +++ b/lib/keystone @@ -318,10 +318,10 @@ function configure_keystone { fi iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi wsgi-file "$KEYSTONE_BIN_DIR/keystone-wsgi-public" - iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi threads $(nproc) + iniset "$KEYSTONE_PUBLIC_UWSGI_FILE" uwsgi processes $(nproc) iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi wsgi-file "$KEYSTONE_BIN_DIR/keystone-wsgi-admin" - iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi threads $API_WORKERS + iniset "$KEYSTONE_ADMIN_UWSGI_FILE" uwsgi processes $API_WORKERS # Common settings for file in "$KEYSTONE_PUBLIC_UWSGI_FILE" "$KEYSTONE_ADMIN_UWSGI_FILE"; do