commit | 05bd7b803d87bbdd1a6f11cfd278eec319c819ea | [log] [tgz] |
---|---|---|
author | Dean Troyer <dtroyer@gmail.com> | Tue Sep 16 17:25:33 2014 -0500 |
committer | Dean Troyer <dtroyer@gmail.com> | Fri Sep 19 09:06:21 2014 -0500 |
tree | 52a763035448ccc5668e52052b7b495a3e26da9f | |
parent | 7672ad1dbc00ec5ff80f3aa670404e413e86e506 [diff] [blame] |
Set default API_WORKERS Set the API_WORKERS default to control memory usage. Maximum is nproc / 2 and minimum is 2. * Also updates https://review.openstack.org/#/c/117517/ to remove the conditional test as API_WORKERS should always be set. * Update https://review.openstack.org/#/c/109058/ for ceilometer to use API_WORKERS The following reviews can move forward either as-is or with minor tweaks: * Keystone: https://review.openstack.org/#/c/121384/ - remove the if check * Swift: https://review.openstack.org/#/c/121456/ - unabandon, the default to 1 is fine, or remove it to match the others. * Trove: https://review.openstack.org/#/c/121438/ - remove the if check https://etherpad.openstack.org/p/devstack-workers has the details Change-Id: Id28d72ebf01c88b7df301edf7d1dd7ec23fcd0d6
diff --git a/lib/nova b/lib/nova index 14d07b0..4864c0b 100644 --- a/lib/nova +++ b/lib/nova
@@ -518,11 +518,9 @@ iniset_rpc_backend nova $NOVA_CONF DEFAULT iniset $NOVA_CONF glance api_servers "$GLANCE_HOSTPORT" - if [ -n "$API_WORKERS" ]; then - iniset $NOVA_CONF DEFAULT osci_compute_workers "$API_WORKERS" - iniset $NOVA_CONF DEFAULT ec2_workers "$API_WORKERS" - iniset $NOVA_CONF DEFAULT metadata_workers "$API_WORKERS" - fi + iniset $NOVA_CONF DEFAULT osci_compute_workers "$API_WORKERS" + iniset $NOVA_CONF DEFAULT ec2_workers "$API_WORKERS" + iniset $NOVA_CONF DEFAULT metadata_workers "$API_WORKERS" } function init_nova_cells {