Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 65bd60b

Browse files
committed
Use framework init
1 parent 1f21118 commit 65bd60b

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

metrics/scaling/k8s_scale_rapid_nc.sh

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ set -e
88

99
# Pull in some common, useful, items
1010
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
11-
LABELVALUE=${LABELVALUE:-scale_nc}
11+
LABELVALUE=${LABELVALUE:-rapid_nc}
1212
source "${SCRIPT_PATH}/../lib/common.bash"
1313
source "${SCRIPT_PATH}/common.bash"
1414
source "${SCRIPT_PATH}/../collectd/collectd.bash"
1515

16+
SMF_USE_COLLECTD=true
17+
1618
# Network latency test parameters:
1719
# number of requests to be sent after each scaling step
1820
nc_reqs=${nc_reqs:-1000}
@@ -87,27 +89,7 @@ EOF
8789
}
8890

8991
init() {
90-
info "Initialising"
91-
92-
local cmds=("bc" "jq" "nc")
93-
check_cmds "${cmds[@]}"
94-
95-
info "Checking k8s accessible"
96-
local worked=$( kubectl get nodes > /dev/null 2>&1 && echo $? || echo $? )
97-
if [ "$worked" != 0 ]; then
98-
die "kubectl failed to get nodes"
99-
fi
100-
101-
info $(get_num_nodes) "k8s nodes in 'Ready' state found"
102-
10392
framework_init
104-
105-
# Launch our stats gathering pod
106-
init_stats $wait_time
107-
108-
# And now we can set up our results storage then...
109-
metrics_json_init "k8s"
110-
save_config
11193
}
11294

11395
save_config(){

0 commit comments

Comments
 (0)