Skip to content

Commit 107145e

Browse files
committed
refactor(RHIDH-9114): Keep db replica count for index directory
Signed-off-by: skestwal <[email protected]>
1 parent cc3345b commit 107145e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ci-scripts/scalability/collect-results.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ for w in "${workers[@]}"; do
4343
for r_c in "${rhdh_replicas[@]}"; do
4444
IFS=":" read -ra tokens <<<"${r_c}"
4545
r="${tokens[0]}"
46+
[[ "${#tokens[@]}" == 1 ]] && dbr="" || dbr="${tokens[1]}"
4647
for bu_bg in "${bs_users_groups[@]}"; do
4748
IFS=":" read -ra tokens <<<"${bu_bg}"
4849
bu="${tokens[0]}" # backstage users
@@ -52,7 +53,7 @@ for w in "${workers[@]}"; do
5253
for au_sr in "${active_users_spawn_rate[@]}"; do
5354
IFS=":" read -ra tokens <<<"${au_sr}"
5455
active_users=${tokens[0]}
55-
output="$ARTIFACT_DIR/scalability_c-${r}r-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${active_users}u-${counter}.csv"
56+
output="$ARTIFACT_DIR/scalability_c-${r}r-${dbr}dbr-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${active_users}u-${counter}.csv"
5657
header="CatalogSize${csv_delim}Apis${csv_delim}Components${csv_delim}MaxActiveUsers${csv_delim}AverageRPS${csv_delim}MaxRPS${csv_delim}AverageRT${csv_delim}MaxRT${csv_delim}Failures${csv_delim}FailRate${csv_delim}DBStorageUsed${csv_delim}DBStorageAvailable${csv_delim}DBStorageCapacity"
5758
for cr_cl in "${cpu_requests_limits[@]}"; do
5859
IFS=":" read -ra tokens <<<"${cr_cl}"
@@ -67,7 +68,7 @@ for w in "${workers[@]}"; do
6768
IFS=":" read -ra tokens <<<"${a_c}"
6869
a="${tokens[0]}" # apis
6970
[[ "${#tokens[@]}" == 1 ]] && c="" || c="${tokens[1]}" # components
70-
index="${r}r-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${cr}cr-${cl}cl-${mr}mr-${ml}ml-${a}a-${c}c"
71+
index="${r}r-${dbr}dbr-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${cr}cr-${cl}cl-${mr}mr-${ml}ml-${a}a-${c}c"
7172
iteration="${index}/test/${counter}/${active_users}u"
7273
(( counter += 1 ))
7374
echo "[$iteration] Looking for benchmark.json..."

ci-scripts/scalability/test-scalability.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ for w in "${workers[@]}"; do
130130
export WORKERS=$w
131131
export API_COUNT=$a
132132
export COMPONENT_COUNT=$c
133-
index="${r}r-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${cr}cr-${cl}cl-${mr}mr-${ml}ml-${a}a-${c}c"
133+
index="${r}r-${dbr}dbr-db_${s}-${bu}bu-${bg}bg-${rbs}rbs-${w}w-${cr}cr-${cl}cl-${mr}mr-${ml}ml-${a}a-${c}c"
134134
set +x
135135
oc login "$OPENSHIFT_API" -u "$OPENSHIFT_USERNAME" -p "$OPENSHIFT_PASSWORD" --insecure-skip-tls-verify=true
136136
make clean-local undeploy-rhdh

0 commit comments

Comments
 (0)