File tree 4 files changed +20
-1
lines changed
scaletest/templates/scaletest-runner/scripts
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ coder exp scaletest cleanup \
28
28
tee " ${SCALETEST_RESULTS_DIR} /cleanup-${event} .txt"
29
29
end_phase
30
30
31
+ if [[ $event != prepare ]]; then
32
+ start_phase " Scaling down provisioners..."
33
+ maybedryrun " $DRY_RUN " kubectl scale deployment/coder-provisioner --replicas 1
34
+ maybedryrun " $DRY_RUN " kubectl rollout status deployment/coder-provisioner
35
+ fi
36
+
31
37
if [[ $event = manual ]]; then
32
38
echo ' Press any key to continue...'
33
39
read -s -r -n 1
Original file line number Diff line number Diff line change @@ -271,10 +271,12 @@ fetch_coder_full() {
271
271
exit 1
272
272
fi
273
273
log " Fetching full Coder binary from ${pod} "
274
+ # We need --retries due to https://github.com/kubernetes/kubernetes/issues/60140 :(
274
275
maybedryrun " ${DRY_RUN} " kubectl \
275
276
--namespace " ${namespace} " \
276
277
cp \
277
278
--container coder \
279
+ --retries 10 \
278
280
" ${pod} :/opt/coder" " ${SCALETEST_CODER_BINARY} "
279
281
maybedryrun " ${DRY_RUN} " chmod +x " ${SCALETEST_CODER_BINARY} "
280
282
log " Full Coder binary downloaded to ${SCALETEST_CODER_BINARY} "
Original file line number Diff line number Diff line change @@ -51,3 +51,15 @@ log "Cleaning up from previous runs (if applicable)..."
51
51
" ${SCRIPTS_DIR} /cleanup.sh" " prepare"
52
52
53
53
log " Preparation complete!"
54
+
55
+ PROVISIONER_REPLICA_COUNT=" ${SCALETEST_PARAM_CREATE_CONCURRENCY:- 0} "
56
+ if [[ " ${PROVISIONER_REPLICA_COUNT} " -eq 0 ]]; then
57
+ # TODO(Cian): what is a good default value here?
58
+ echo " Setting PROVISIONER_REPLICA_COUNT to 10 since SCALETEST_PARAM_CREATE_CONCURRENCY is 0"
59
+ PROVISIONER_REPLICA_COUNT=10
60
+ fi
61
+ log " Scaling up provisioners to ${PROVISIONER_REPLICA_COUNT} ..."
62
+ maybedryrun " $DRY_RUN " kubectl scale deployment/coder-provisioner \
63
+ --replicas " ${PROVISIONER_REPLICA_COUNT} "
64
+ log " Waiting for provisioners to scale up..."
65
+ maybedryrun " $DRY_RUN " kubectl rollout status deployment/coder-provisioner
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ for scenario in "${SCALETEST_PARAM_LOAD_SCENARIOS[@]}"; do
49
49
;;
50
50
" Dashboard Traffic" )
51
51
coder exp scaletest dashboard \
52
- --count " ${SCALETEST_PARAM_NUM_WORKSPACES} " \
53
52
--timeout " ${SCALETEST_PARAM_LOAD_SCENARIO_DASHBOARD_TRAFFIC_DURATION} m" \
54
53
--job-timeout " ${SCALETEST_PARAM_LOAD_SCENARIO_DASHBOARD_TRAFFIC_DURATION} m30s" \
55
54
--output json:" ${SCALETEST_RESULTS_DIR} /traffic-dashboard.json" \
You can’t perform that action at this time.
0 commit comments