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
diff --git a/lib/nova b/lib/nova
index 32a51d3..e2e1ea2 100644
--- a/lib/nova
+++ b/lib/nova
@@ -444,6 +444,9 @@
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`