Honour API_WORKERS setting in devstack plugin
DevStack has API_WORKERS variable which mean a count of worker threads for services. This variable allows to be set in local.conf. Otherwise it is evaluated in stackrc script. DevStack's nova script uses it to set workers count for ec2 and metadata services. Thus ec2-api have to do the same. Change-Id: I67a991be239588beb8086b7c462e559cd08da055
This commit is contained in:
parent
33f4bdfef0
commit
f7595283c1
|
@ -178,6 +178,7 @@ function configure_ec2api {
|
|||
iniset $EC2API_CONF_FILE DEFAULT admin_user $EC2API_ADMIN_USER
|
||||
iniset $EC2API_CONF_FILE DEFAULT admin_password $SERVICE_PASSWORD
|
||||
|
||||
iniset $EC2API_CONF_FILE DEFAULT ec2api_workers "$API_WORKERS"
|
||||
iniset $EC2API_CONF_FILE DEFAULT keystone_url "http://${KEYSTONE_AUTH_HOST}:35357/v2.0"
|
||||
iniset $EC2API_CONF_FILE DEFAULT region_list "$REGION_NAME"
|
||||
|
||||
|
@ -196,6 +197,7 @@ function configure_ec2api {
|
|||
configure_ec2api_networking
|
||||
|
||||
# metadata configuring
|
||||
iniset $EC2API_CONF_FILE DEFAULT metadata_workers "$API_WORKERS"
|
||||
if [[ ,${ENABLED_SERVICES} =~ ,"q-" ]]; then
|
||||
# with neutron
|
||||
iniset $Q_META_CONF_FILE DEFAULT nova_metadata_port 8789
|
||||
|
|
Loading…
Reference in New Issue