Skip to content

Commit 0185750

Browse files
author
Richard Park
committed
Stress tests and changes to the load balancing code.
1 parent 770d2ae commit 0185750

11 files changed

Lines changed: 471 additions & 266 deletions

sdk/messaging/azeventhubs/internal/eh/stress/scenarios-matrix.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ matrix:
6161
prefetch: 0
6262
verbose: ""
6363
sleepAfter: "5m"
64+
multibalance:
65+
testTarget: multibalance
66+
rounds: 100
67+
verbose: ""

sdk/messaging/azeventhubs/internal/eh/stress/stress.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func main() {
1818
}{
1919
{name: "batch", fn: tests.BatchStressTester},
2020
{name: "balance", fn: tests.BalanceTester},
21+
{name: "multibalance", fn: tests.MultiBalanceTester},
2122
{name: "processor", fn: tests.ProcessorStressTester},
2223
}
2324

sdk/messaging/azeventhubs/internal/eh/stress/templates/stress-test-job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ spec:
2222
- >
2323
set -ex;
2424
mkdir -p "$DEBUG_SHARE";
25+
{{if eq .Stress.testTarget "multibalance" }}
26+
/app/stress "{{.Stress.testTarget}}" "-rounds" "{{.Stress.rounds}}" "{{.Stress.verbose}}" 2>&1 | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
27+
{{else}}
2528
/app/stress "{{.Stress.testTarget}}" "-rounds" "{{.Stress.rounds}}" "-prefetch" "{{.Stress.prefetch}}" "{{.Stress.verbose}}" "-sleepAfter" "{{.Stress.sleepAfter}}" 2>&1 | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
29+
{{end}}
2630
# Pulls the image on pod start, always. We tend to push to the same image and tag over and over again
2731
# when iterating, so this is a must.
2832
imagePullPolicy: Always

0 commit comments

Comments
 (0)