From d03ed967dd6babe47523f9086d026b76b684a869 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Fri, 3 Jun 2016 16:01:29 -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 the docs use processes to improve performance. Change-Id: I5375702f45ccb82c02ff2bba1eabda836d5d25eb --- doc/source/apache-httpd.rst | 4 ++-- httpd/keystone-uwsgi-admin.ini | 2 +- httpd/keystone-uwsgi-public.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/apache-httpd.rst b/doc/source/apache-httpd.rst index e61be86ba1..828bcceaaf 100644 --- a/doc/source/apache-httpd.rst +++ b/doc/source/apache-httpd.rst @@ -66,8 +66,8 @@ Start or restart HTTPD to pick up the new configuration. Now configure and start the uwsgi services. Copy the `httpd/keystone-uwsgi-admin.ini` and `httpd/keystone-uwsgi-public.ini` files to `/etc/keystone`. Update the files to match your system configuration (for -example, you'll want to set the number of threads for the public and admin -servers). +example, you'll want to set the number of processes and threads for the public +and admin servers). Start up the keystone servers using uwsgi:: diff --git a/httpd/keystone-uwsgi-admin.ini b/httpd/keystone-uwsgi-admin.ini index 8624ee3e9e..cd8af98693 100644 --- a/httpd/keystone-uwsgi-admin.ini +++ b/httpd/keystone-uwsgi-admin.ini @@ -14,7 +14,7 @@ master = true enable-threads = true # Tune this to your environment. -threads = 4 +processes = 4 # uwsgi recommends this to prevent thundering herd on accept. thunder-lock = true diff --git a/httpd/keystone-uwsgi-public.ini b/httpd/keystone-uwsgi-public.ini index c952116330..06ec0cd3ca 100644 --- a/httpd/keystone-uwsgi-public.ini +++ b/httpd/keystone-uwsgi-public.ini @@ -14,7 +14,7 @@ master = true enable-threads = true # Tune this to your environment. -threads = 4 +processes = 4 # uwsgi recommends this to prevent thundering herd on accept. thunder-lock = true