From 33b331875d9ec904419ad8da3f5bf66077e5d78c Mon Sep 17 00:00:00 2001
From: Joe Gordon <joe.gordon0@gmail.com>
Date: Thu, 5 Sep 2013 13:06:52 -0700
Subject: [PATCH] Enable multi-threaded nova API servers

Add an additional worker thread for each nova service: compute, ec2 and
metadata.  Any real deployment will be using multiple API server
threads, so lets make devstack test that scenario.  With this patch we
will have four worker threads for each type of API server.

Change-Id: I09f4c6f57e71982b8c7fc92645b3ebec12ff1348
---
 lib/nova | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/nova b/lib/nova
index 32a51d3d4d..e2e1ea2835 100644
--- a/lib/nova
+++ b/lib/nova
@@ -444,6 +444,9 @@ function create_nova_conf() {
     iniset $NOVA_CONF DEFAULT s3_port "$S3_SERVICE_PORT"
     iniset $NOVA_CONF DEFAULT osapi_compute_extension "nova.api.openstack.compute.contrib.standard_extensions"
     iniset $NOVA_CONF DEFAULT my_ip "$HOST_IP"
+    iniset $NOVA_CONF DEFAULT osapi_compute_workers "4"
+    iniset $NOVA_CONF DEFAULT ec2_workers "4"
+    iniset $NOVA_CONF DEFAULT metadata_workers "4"
     iniset $NOVA_CONF DEFAULT sql_connection `database_connection_url nova`
     if is_baremetal; then
         iniset $NOVA_CONF baremetal sql_connection `database_connection_url nova_bm`