Remove legacy variable of keystone workers

This removes the legacy multiplier factor called
TIS_WORKERS_FACTORS under keystone-all which scales the
workers assigned to all controllers(expect for AIO) by 1.5.

Test plan:
1 Build ISO with the change; verify installation on local DC
2 Verify keystone worker reduction on a lab DC system
3 Patch the change to a large DC system and soak for 2-3hours

Story: 2008960
Task: 44122

Signed-off-by: BoYuan Chang <boyuan.chang@windriver.com>
Change-Id: Ic3ab6890771bce45dd6f2bff49a25b5e3cfc6214
This commit is contained in:
BoYuan Chang 2021-12-02 13:34:28 -05:00 committed by Bo Yuan Chang
parent c5bafe1c3d
commit 10dc6c2832
1 changed files with 2 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (c) 2013-2018 Wind River Systems, Inc.
# Copyright (c) 2013-2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -41,16 +41,7 @@ WORKER="eventlet"
# Increased timeout to facilitate large image uploads
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
if [ "$system_type" == "All-in-one" ]; 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%.*}
TIS_WORKERS=${TIS_PUBLIC_WORKERS%.*}
#--max-requests , --max-requests-jitter Configuration
#--max-requests = The max number of requests a worker will process before restarting