Sets baremetal workers to 12 73/33873/1
authorTim Rozet <trozet@redhat.com>
Wed, 26 Apr 2017 13:47:48 +0000 (09:47 -0400)
committerTim Rozet <trozet@redhat.com>
Wed, 26 Apr 2017 13:53:55 +0000 (09:53 -0400)
There is an issue where in Newton the number of workers (sub processes)
opened per openstack service scales with the number of logical cores on
the system.  On servers with large amount of processors this causes the
cloud to fail after some time due to running out of RAM.  This patch
will limit the number of worker processes to 12, which is the limit in
Ocata and onwards.

JIRA: APEX-410

Change-Id: I28c4762830c19cd758a0729017f2d4a9ebe372b4
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/baremetal-environment.yaml [new file with mode: 0644]
build/undercloud.sh
lib/overcloud-deploy-functions.sh

diff --git a/build/baremetal-environment.yaml b/build/baremetal-environment.yaml
new file mode 100644 (file)
index 0000000..677b313
--- /dev/null
@@ -0,0 +1,9 @@
+parameter_defaults:
+  HeatWorkers: 12
+  CeilometerWorkers: 12
+  CinderWorkers: 12
+  GlanceWorkers: 12
+  KeystoneWorkers: 12
+  NeutronWorkers: 12
+  NovaWorkers: 12
+  SwiftWorkers: 12
index de96f02..f6ab4bc 100755 (executable)
@@ -56,6 +56,7 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --upload ${BUILD_ROOT}/ovs-dpdk-preconfig.yaml:/home/stack/ \
     --upload ${BUILD_ROOT}/csit-environment.yaml:/home/stack/ \
     --upload ${BUILD_ROOT}/virtual-environment.yaml:/home/stack/ \
+    --upload ${BUILD_ROOT}/baremetal-environment.yaml:/home/stack/ \
     --install "python2-congressclient" \
     --run-command "sed -i '/SwiftPassword/a\    \x27TackerPassword\x27,' /usr/lib/python2.7/site-packages/tripleo_common/constants.py" \
     --run-command "sed -i '/CinderPassword/a\    \x27CongressPassword\x27,' /usr/lib/python2.7/site-packages/tripleo_common/constants.py" \
index f2c9a85..271b4b8 100755 (executable)
@@ -360,7 +360,9 @@ EOI
 
   DEPLOY_OPTIONS+=" --control-flavor control --compute-flavor compute"
   if [[ "$virtual" == "TRUE" ]]; then
-     DEPLOY_OPTIONS+=" -e virtual-environment.yaml"
+    DEPLOY_OPTIONS+=" -e virtual-environment.yaml"
+  else
+    DEPLOY_OPTIONS+=" -e baremetal-environment.yaml"
   fi
 
   echo -e "${blue}INFO: Deploy options set:\n${DEPLOY_OPTIONS}${reset}"