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
This commit is contained in:
Joe Gordon 2013-09-05 13:06:52 -07:00
parent 17be7d5de2
commit 33b331875d

View File

@ -444,6 +444,9 @@ function create_nova_conf() {
iniset $NOVA_CONF DEFAULT s3_port "$S3_SERVICE_PORT" 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 osapi_compute_extension "nova.api.openstack.compute.contrib.standard_extensions"
iniset $NOVA_CONF DEFAULT my_ip "$HOST_IP" 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` iniset $NOVA_CONF DEFAULT sql_connection `database_connection_url nova`
if is_baremetal; then if is_baremetal; then
iniset $NOVA_CONF baremetal sql_connection `database_connection_url nova_bm` iniset $NOVA_CONF baremetal sql_connection `database_connection_url nova_bm`