Browse code

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

Joe Gordon authored on 2013/09/06 05:06:52
Showing 1 changed files
... ...
@@ -444,6 +444,9 @@ function create_nova_conf() {
444 444
     iniset $NOVA_CONF DEFAULT s3_port "$S3_SERVICE_PORT"
445 445
     iniset $NOVA_CONF DEFAULT osapi_compute_extension "nova.api.openstack.compute.contrib.standard_extensions"
446 446
     iniset $NOVA_CONF DEFAULT my_ip "$HOST_IP"
447
+    iniset $NOVA_CONF DEFAULT osapi_compute_workers "4"
448
+    iniset $NOVA_CONF DEFAULT ec2_workers "4"
449
+    iniset $NOVA_CONF DEFAULT metadata_workers "4"
447 450
     iniset $NOVA_CONF DEFAULT sql_connection `database_connection_url nova`
448 451
     if is_baremetal; then
449 452
         iniset $NOVA_CONF baremetal sql_connection `database_connection_url nova_bm`