-
Notifications
You must be signed in to change notification settings - Fork 2k
/
distributed-tests.yml
188 lines (182 loc) · 5.61 KB
/
distributed-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
variables:
clusterId: '{{ "now" | date: "%s" }}'
serviceId: '{{ "now" | date: "%s" }}'
framework: net8.0
jobs:
server:
source:
localFolder: Artifacts/DistributedTests/DistributedTests.Server/{{framework}}
executable: DistributedTests.Server.exe
readyStateText: Orleans Silo started.
framework: net8.0
arguments: "{{configurator}} --clusterId {{clusterId}} --serviceId {{serviceId}} --azureQueueUri {{azureQueueUri}} --azureTableUri {{azureTableUri}} {{configuratorOptions}}"
onConfigure:
- if (job.endpoints.Count > 0) {
job.endpoints.RemoveRange(job.variables.instances, job.endpoints.Count - job.variables.instances);
}
client:
source:
localFolder: Artifacts/DistributedTests/DistributedTests.Client/{{framework}}
executable: DistributedTests.Client.exe
waitForExit: true
framework: net8.0
arguments: "{{command}} --clusterId {{clusterId}} --serviceId {{serviceId}} --azureQueueUri {{azureQueueUri}} --azureTableUri {{azureTableUri}} {{commandOptions}}"
onConfigure:
- if (job.endpoints.Count > 0) {
job.endpoints.Reverse();
job.endpoints.RemoveRange(job.variables.instances, job.endpoints.Count - job.variables.instances);
}
scenarios:
ping:
server:
job: server
variables:
instances: 10
configurator: SimpleSilo
client:
job: client
variables:
command: ping
instances: 1
numWorkers: 250
blocksPerWorker: 0
requestsPerBlock: 500
duration: 120
commandOptions: "--numWorkers {{numWorkers}} --blocksPerWorker {{blocksPerWorker}} --requestsPerBlock {{requestsPerBlock}} --duration {{duration}}"
fanout:
server:
job: server
variables:
instances: 10
configurator: SimpleSilo
client:
job: client
variables:
command: fan-out
instances: 1
numWorkers: 1
blocksPerWorker: 0
requestsPerBlock: 50
duration: 240
commandOptions: "--numWorkers {{numWorkers}} --blocksPerWorker {{blocksPerWorker}} --requestsPerBlock {{requestsPerBlock}} --duration {{duration}}"
streaming:
server:
job: server
variables:
instances: 10
configurator: EventGeneratorStreamingSilo
duration: 300
type: ExplicitGrainBasedAndImplicit
streamsPerQueue: 1000
queueCount: 8
wait: 20
configuratorOptions: "--type {{type}} --streamsPerQueue {{streamsPerQueue}} --queueCount {{queueCount}} --wait {{wait}} --duration {{duration}}"
client:
job: client
variables:
command: counter
instances: 1
commandOptions: "requests errors"
reliability:
server:
job: server
variables:
instances: 10
configurator: SimpleSilo
chaosagent:
job: client
waitForExit: false
variables:
command: chaosagent
instances: 1
wait: 30
serversPerRound: 1
rounds: 4
roundDelay: 30
graceful: false
restart: true
commandOptions: "--wait {{wait}} --serversPerRound {{serversPerRound}} --rounds {{rounds}} --roundDelay {{roundDelay}} --graceful {{graceful}} --restart {{restart}}"
client:
job: client
waitForExit: true
variables:
command: ping
instances: 1
numWorkers: 250
blocksPerWorker: 0
requestsPerBlock: 500
duration: 180
commandOptions: "--numWorkers {{numWorkers}} --blocksPerWorker {{blocksPerWorker}} --requestsPerBlock {{requestsPerBlock}} --duration {{duration}}"
rolling:
server:
job: server
variables:
instances: 10
configurator: SimpleSilo
chaosagent:
job: client
waitForExit: false
variables:
command: chaosagent
instances: 1
wait: 30
serversPerRound: 1
rounds: 4
roundDelay: 30
graceful: true
restart: true
commandOptions: "--wait {{wait}} --serversPerRound {{serversPerRound}} --rounds {{rounds}} --roundDelay {{roundDelay}} --graceful {{graceful}} --restart {{restart}}"
client:
job: client
waitForExit: true
variables:
command: ping
instances: 1
numWorkers: 250
blocksPerWorker: 0
requestsPerBlock: 500
duration: 180
commandOptions: "--numWorkers {{numWorkers}} --blocksPerWorker {{blocksPerWorker}} --requestsPerBlock {{requestsPerBlock}} --duration {{duration}}"
counters:
- provider: Microsoft.Orleans
values:
- name: app-requests
measurement: orleans-counter/requests-per-second
description: Request rate
- name: activation-count
measurement: orleans-counter/grain-activation-count
description: Total number of grains
results:
# Microsoft.Orleans counters
- name: orleans-counter/requests-per-second
measurement: orleans-counter/requests-per-second
description: Request rate
format: "n0"
aggregate: max
reduce: max
- name: orleans-counter/requests-per-second/95
measurement: orleans-counter/requests-per-second
description: Request rate
format: "n0"
aggregate: percentile95
reduce: max
- name: activation-count
measurement: orleans-counter/grain-activation-count
description: Active grains
profiles:
local:
variables:
azureQueueUri: "http://127.0.0.1:10001"
azureTableUri: "http://127.0.0.1:10002"
jobs:
server:
endpoints:
- http://localhost:5010
variables:
instances: 1
client:
endpoints:
- http://localhost:5010
chaosagent:
endpoints:
- http://localhost:5010