Sets baremetal workers to 12 87/38987/1
authorFeng Pan <fpan@redhat.com>
Wed, 9 Aug 2017 17:18:39 +0000 (13:18 -0400)
committerFeng Pan <fpan@redhat.com>
Wed, 9 Aug 2017 17:19:53 +0000 (13:19 -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>
Signed-off-by: Feng Pan <fpan@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 0e1a2e3..b1e2323 100755 (executable)
@@ -48,6 +48,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}/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 "libguestfs-tools" \
     -a undercloud_build.qcow2
 
     --install "libguestfs-tools" \
     -a undercloud_build.qcow2
 
index bfa98e5..c1f258b 100755 (executable)
@@ -356,6 +356,8 @@ EOI
          sleep 5
      done
      vbmc list
          sleep 5
      done
      vbmc list
+  else
+    DEPLOY_OPTIONS+=" -e baremetal-environment.yaml"
   fi
 
   echo -e "${blue}INFO: Deploy options set:\n${DEPLOY_OPTIONS}${reset}"
   fi
 
   echo -e "${blue}INFO: Deploy options set:\n${DEPLOY_OPTIONS}${reset}"