mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-21 06:26:20 +00:00
metrics: parallel scaling: add 'grace' handling
When 'grace' handling was added, it got missed from the parallel script (which shares the bb.*.in files). Add it in to fix the test. Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
committed by
David Lyle
parent
15ab28deaf
commit
e4ef431b0f
@@ -29,6 +29,7 @@ LABELVALUE=${LABELVALUE:-parallel}
|
||||
wait_time=${wait_time:-30}
|
||||
delete_wait_time=${delete_wait_time:-600}
|
||||
use_api=${use_api:-yes}
|
||||
grace=${grace:-30}
|
||||
|
||||
# Set some default metrics env vars
|
||||
TEST_ARGS="runtime=${RUNTIME}"
|
||||
@@ -78,6 +79,7 @@ warmup() {
|
||||
-e "s|@DEPLOYMENT@|${deployment}|g" \
|
||||
-e "s|@LABEL@|${LABEL}|g" \
|
||||
-e "s|@LABELVALUE@|${LABELVALUE}|g" \
|
||||
-e "s|@GRACE@|${grace}|g" \
|
||||
< ${input_yaml} > ${generated_yaml}
|
||||
|
||||
info "Applying warmup pod"
|
||||
@@ -191,6 +193,7 @@ run() {
|
||||
-e "s|@DEPLOYMENT@|${deployment}|g" \
|
||||
-e "s|@LABEL@|${LABEL}|g" \
|
||||
-e "s|@LABELVALUE@|${LABELVALUE}|g" \
|
||||
-e "s|@GRACE@|${grace}|g" \
|
||||
< ${input_template} > ${generated_file}
|
||||
|
||||
info "Applying changes"
|
||||
@@ -248,6 +251,8 @@ show_vars()
|
||||
echo -e "\t\tSeconds to wait after pods ready before taking measurements"
|
||||
echo -e "\tuse_api (${use_api})"
|
||||
echo -e "\t\tspecify yes or no to use the API to launch pods"
|
||||
echo -e "\tgrace (${grace})"
|
||||
echo -e "\t\tspecify the grace period in seconds for workload pod termination"
|
||||
}
|
||||
|
||||
help()
|
||||
|
||||
Reference in New Issue
Block a user