File tree Expand file tree Collapse file tree 2 files changed +60
-6
lines changed
sdk/messaging/azeventhubs/internal/eh/stress Expand file tree Collapse file tree 2 files changed +60
-6
lines changed Original file line number Diff line number Diff line change @@ -7,38 +7,57 @@ matrix:
77 batch :
88 testTarget : batch
99 type : " batch"
10- rounds : 100
10+ rounds : 1000
1111 prefetch : 0
1212 verbose : " "
1313 sleepAfter : " 5m"
1414 batchprefetchoff :
1515 testTarget : batch
16- rounds : 100
16+ rounds : 1000
1717 prefetch : -1
1818 verbose : " "
1919 sleepAfter : " 5m"
2020 batchinfinite :
2121 testTarget : batch
2222 type : " batch"
23- rounds : 100
23+ rounds : 1000
2424 prefetch : 0
2525 verbose : " "
2626 sleepAfter : " 5m"
27+ batchinfinitechaos :
28+ testTarget : batch
29+ type : " batch"
30+ rounds : 1000
31+ prefetch : 0
32+ verbose : " "
33+ sleepAfter : " 5m"
34+ # this value is injected as a label value in templates/deploy-job.yaml
35+ # this'll activate our standard chaos policy, which is at the bottom of that file.
36+ chaos : " true"
2737 processor :
2838 testTarget : processor
29- rounds : 100
39+ rounds : 1000
40+ prefetch : 0
41+ verbose : " "
42+ sleepAfter : " 5m"
43+ processorchaos :
44+ testTarget : processor
45+ rounds : 1000
3046 prefetch : 0
3147 verbose : " "
3248 sleepAfter : " 5m"
49+ # this value is injected as a label value in templates/deploy-job.yaml
50+ # this'll activate our standard chaos policy, which is at the bottom of that file.
51+ chaos : " true"
3352 processorprefetchoff :
3453 testTarget : processor
35- rounds : 100
54+ rounds : 1000
3655 prefetch : -1
3756 verbose : " "
3857 sleepAfter : " 5m"
3958 processorinfinite :
4059 testTarget : processor
41- rounds : 100
60+ rounds : 1000
4261 prefetch : 0
4362 verbose : " "
4463 sleepAfter : " 5m"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ metadata:
55 testName : " goeh"
66 # This'll make it so the resources aren't deleted on test exit.
77 # Skip.RemoveTestResources: "true"
8+ chaos : " {{ default false .Stress.chaos }}"
89spec :
910 containers :
1011 - name : main
4041 {{- include "stress-test-addons.container-env" . | nindent 6 }}
4142{{- end -}}
4243
44+ {{- include "stress-test-addons.chaos-wrapper.tpl" (list . "stress.network-chaos") -}}
45+ {{- define "stress.network-chaos" -}}
46+ # basically: every 5 minutes do 10s of network loss
47+ kind : Schedule
48+ apiVersion : chaos-mesh.org/v1alpha1
49+ spec :
50+ schedule : " */5 * * * *"
51+ startingDeadlineSeconds : null
52+ concurrencyPolicy : Forbid
53+ historyLimit : 1
54+ type : NetworkChaos
55+ networkChaos :
56+ selector :
57+ namespaces :
58+ - " {{ .Release.Namespace }}"
59+ labelSelectors :
60+ scenario : {{ .Stress.Scenario }}
61+ mode : all
62+ action : loss
63+ duration : 10s
64+ loss :
65+ loss : ' 100'
66+ correlation : ' 100'
67+ direction : to
68+ target :
69+ selector :
70+ namespaces :
71+ - {{ .Release.Namespace }}
72+ labelSelectors :
73+ scenario : {{ .Stress.Scenario }}
74+ mode : all
75+ externalTargets :
76+ - {{ .Stress.BaseName }}.servicebus.windows.net
77+ {{- end -}}
You can’t perform that action at this time.
0 commit comments