forked from dotnet/orleans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distributed-tests.yml
143 lines (140 loc) · 4.28 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
variables:
clusterId: '{{ "now" | date: "%s" }}'
serviceId: '{{ "now" | date: "%s" }}'
secretSource: KeyVault
framework: net7.0
jobs:
server:
source:
localFolder: Artifacts/DistributedTests/DistributedTests.Server/{{framework}}
executable: DistributedTests.Server.exe
readyStateText: Orleans Silo started.
framework: net7.0
arguments: "{{configurator}} --clusterId {{clusterId}} --serviceId {{serviceId}} --secretSource {{secretSource}} {{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: net7.0
arguments: "{{command}} --clusterId {{clusterId}} --serviceId {{serviceId}} --secretSource {{secretSource}} {{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}}"
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}}"
profiles:
local:
variables:
secretSource: File
jobs:
server:
endpoints:
- http://localhost:5010
variables:
instances: 1
client:
endpoints:
- http://localhost:5010
chaosagent:
endpoints:
- http://localhost:5010