AIO-SX Regression: Memory usage exceed alarms appeared during test run

- Reduce both CPU and memory footprint for AIO simplex by reducing the number of workers across the board.
- In addition:
     a. Reduce ceilometer workers to 1 as the traffic generated from max number of VMs in simplex (20) does
        not warrant more workers than 1. Increase batch timeout to reduce load.
     b. Change keystone workers factor from 1.5 to 1 which further reduces the number of keystone workers
        for simplex. The number of requests do not warrrant more workers than other services.
     c. Reduce the number of nova api metadata workers to half of nova api compute workers for both AIO and
        standard configs based on LO data.
  AIO installations, simplex sanity & sanity nightly all passed. Sanity, parallel VM/volume launch timings
  also improved. Ceilometer messages were cleared timely.

Change-Id: I86455e64b48fdc543cd9e99cf95f5ddb2295f71f
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Tee Ngo 2018-04-18 13:10:44 -04:00 committed by Scott Little
parent e7dc49a0b6
commit bc71b1437d

@ -25,6 +25,7 @@ PIDFILE_PUBLIC="/var/run/$DESC_PUBLIC.pid"
PYTHON=`which python`
source /etc/keystone/keystone-extra.conf
source /etc/platform/platform.conf
if [ -n ${@:2:1} ] ; then
if [ ${@:2:1}="--public-bind-addr" ] ; then
@ -43,7 +44,11 @@ TIMEOUT="200"
# Calculate the no of workers based on the number of workers retrieved by
# Platform Eng which is retreived from the keystone-extra.conf
TIS_WORKERS_FACTOR=1.5
if [ "$system_type" = "All-in-one" ] & [ "$system_mode" = "simplex" ]; then
TIS_WORKERS_FACTOR=1
else
TIS_WORKERS_FACTOR=1.5
fi
TIS_WORKERS=$(echo "${TIS_WORKERS_FACTOR}*${TIS_PUBLIC_WORKERS}"|bc )
TIS_WORKERS=${TIS_WORKERS%.*}