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:
7
7
batch :
8
8
testTarget : batch
9
9
type : " batch"
10
- rounds : 100
10
+ rounds : 1000
11
11
prefetch : 0
12
12
verbose : " "
13
13
sleepAfter : " 5m"
14
14
batchprefetchoff :
15
15
testTarget : batch
16
- rounds : 100
16
+ rounds : 1000
17
17
prefetch : -1
18
18
verbose : " "
19
19
sleepAfter : " 5m"
20
20
batchinfinite :
21
21
testTarget : batch
22
22
type : " batch"
23
- rounds : 100
23
+ rounds : 1000
24
24
prefetch : 0
25
25
verbose : " "
26
26
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"
27
37
processor :
28
38
testTarget : processor
29
- rounds : 100
39
+ rounds : 1000
40
+ prefetch : 0
41
+ verbose : " "
42
+ sleepAfter : " 5m"
43
+ processorchaos :
44
+ testTarget : processor
45
+ rounds : 1000
30
46
prefetch : 0
31
47
verbose : " "
32
48
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"
33
52
processorprefetchoff :
34
53
testTarget : processor
35
- rounds : 100
54
+ rounds : 1000
36
55
prefetch : -1
37
56
verbose : " "
38
57
sleepAfter : " 5m"
39
58
processorinfinite :
40
59
testTarget : processor
41
- rounds : 100
60
+ rounds : 1000
42
61
prefetch : 0
43
62
verbose : " "
44
63
sleepAfter : " 5m"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ metadata:
5
5
testName : " goeh"
6
6
# This'll make it so the resources aren't deleted on test exit.
7
7
# Skip.RemoveTestResources: "true"
8
+ chaos : " {{ default false .Stress.chaos }}"
8
9
spec :
9
10
containers :
10
11
- name : main
40
41
{{- include "stress-test-addons.container-env" . | nindent 6 }}
41
42
{{- end -}}
42
43
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