-
Notifications
You must be signed in to change notification settings - Fork 313
/
track-schema.json
580 lines (580 loc) · 22.5 KB
/
track-schema.json
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "track",
"description": "Specification of tracks for Rally",
"type": "object",
"definitions": {
"schedule": {
"title": "Schedule",
"type": "array",
"minItems": 1,
"description": "Defines the concrete execution order of operations.",
"items": {
"type": "object",
"properties": {
"parallel": {
"type": "object",
"description": "This element allows to define tasks that should be run in parallel. We do not support nested parallel tasks.",
"properties": {
"clients": {
"type": "integer",
"minimum": 1
},
"warmup-iterations": {
"type": "integer",
"minimum": 0
},
"iterations": {
"type": "integer",
"minimum": 1
},
"warmup-time-period": {
"type": "integer",
"minimum": 0,
"description": "Defines the time period in seconds to run the operation in order to warmup the benchmark candidate. The warmup time period will not be considered in the benchmark result."
},
"time-period": {
"type": "integer",
"minimum": 1,
"description": "Defines the time period in seconds to run the operation. Note that the parameter source may be exhausted before the specified time period has elapsed."
},
"completed-by": {
"type": "string",
"description": "The name of an operation in the 'tasks' block. When this operation is completed, the whole parallel element is considered to be completed."
},
"tasks": {
"type": "array",
"minItems": 1,
"description": "Defines the operations that will be run in parallel",
"items": {
"type": "object",
"description": "Defines an individual operation that is executed",
"properties": {
"name": {
"type": "string",
"description": "Explicit name of the task. By default the operation's name is implicitly used as the task's name but if the same operation is run multiple times, a unique task name must be specified."
},
"operation": {
"description": "The name of an operation that should be executed. This name must match the operation name in the 'operations' block."
},
"meta": {
"type": "object",
"description": "Meta-information which will be added to each metrics-record of this task."
},
"clients": {
"type": "integer",
"minimum": 1
},
"warmup-iterations": {
"type": "integer",
"minimum": 0,
"description": "Defines the number of times to run the operation in order to warmup the benchmark candidate. Warmup iterations will not be considered in the benchmark result."
},
"iterations": {
"type": "integer",
"minimum": 1,
"description": "Defines the number of times to run the operation."
},
"warmup-time-period": {
"type": "integer",
"minimum": 0,
"description": "Defines the time period in seconds to run the operation in order to warmup the benchmark candidate. The warmup time period will not be considered in the benchmark result."
},
"time-period": {
"type": "integer",
"minimum": 1,
"description": "Defines the time period in seconds to run the operation. Note that the parameter source may be exhausted before the specified time period has elapsed."
},
"schedule": {
"type": "string",
"description": "Defines the scheduling strategy that is used for throughput throttled operations. Out of the box, Rally supports 'deterministic' (default) and 'poisson' but you can implement your own schedules."
},
"target-throughput": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string"
}
],
"description": "Defines the number of operations per second that Rally should attempt to run."
},
"target-interval": {
"type": "number",
"minimum": 0,
"description": "Defines the number of seconds to wait between operations (inverse of target-throughput). Only one of 'target-throughput' or 'target-interval' may be defined."
},
"ignore-response-error-level": {
"type": "string",
"description": "Overrides non-fatal error handling globally defined via the cli arg on-error=abort. Only 'non-fatal' may be defined which will continue unless a fatal error occurs."
}
},
"required": [
"operation"
]
}
}
},
"required": [
"tasks"
]
},
"name": {
"type": "string",
"description": "Explicit name of the task. By default the operation's name is implicitly used as the task's name but if the same operation is run multiple times, a unique task name must be specified."
},
"operation": {
"description": "The name of an operation that should be executed. This name must match the operation name in the 'operations' block."
},
"meta": {
"type": "object",
"description": "Meta-information which will be added to each metrics-record of this task."
},
"clients": {
"type": "integer",
"minimum": 1
},
"warmup-iterations": {
"type": "integer",
"minimum": 0,
"description": "Defines the number of times to run the operation in order to warmup the benchmark candidate. Warmup iterations will not be considered in the benchmark result."
},
"iterations": {
"type": "integer",
"minimum": 1,
"description": "Defines the number of times to run the operation."
},
"warmup-time-period": {
"type": "integer",
"minimum": 0,
"description": "Defines the time period in seconds to run the operation in order to warmup the benchmark candidate. The warmup time period will not be considered in the benchmark result."
},
"time-period": {
"type": "integer",
"minimum": 1,
"description": "Defines the time period in seconds to run the operation. Note that the parameter source may be exhausted before the specified time period has elapsed."
},
"target-throughput": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string"
}
],
"description": "Defines the number of operations per second that Rally should attempt to run."
},
"target-interval": {
"type": "number",
"minimum": 0,
"description": "Defines the number of seconds to wait between operations (inverse of target-throughput). Only one of 'target-throughput' or 'target-interval' may be defined."
}
}
}
},
"challenge": {
"title": "Challenge",
"type": "object",
"description": "Defines the concrete execution order",
"properties": {
"name": {
"type": "string",
"description": "A descriptive name of the challenge. Should not contain spaces in order to simplify handling on the command line for users."
},
"default": {
"type": "boolean",
"description": "If true, Rally should select this challenge as the default challenge if the user does not specify one on the command line."
},
"meta": {
"type": "object",
"description": "Meta-information which will be added to each metrics-record of this challenge."
},
"description": {
"type": "string",
"description": "A human readable description of the challenge"
},
"cluster-settings": {
"type": "object",
"description": "Defines the cluster settings of the benchmark candidate."
},
"schedule": {
"$ref": "#/definitions/schedule"
}
},
"required": [
"name",
"schedule"
]
}
},
"properties": {
"description": {
"type": "string",
"description": "A description of this track suitable for command line usage. It should be less than 80 characters."
},
"version": {
"type": "integer",
"minimum": 1,
"description": "The version of the track specification format that is being used (optional)."
},
"meta": {
"type": "object",
"description": "Meta-information which will be added to each metrics-record of this track."
},
"component-templates": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Component Template",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Component template name."
},
"template": {
"type": "string",
"description": "Component template file name."
}
},
"required": [
"name",
"template"
]
}
},
"composable-templates": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Composable Template",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Composable template name."
},
"index-pattern": {
"type": "string",
"description": "Index pattern that matches the composable template. This must match the definition in the composable index template file."
},
"delete-matching-indices": {
"type": "boolean",
"description": "Delete all indices that match the provided index pattern before start of the benchmark (optional, defaults to true)."
},
"template": {
"type": "string",
"description": "Composable template file name."
}
},
"required": [
"name",
"index-pattern",
"template"
]
}
},
"templates": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Template",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Index template name."
},
"index-pattern": {
"type": "string",
"description": "Index pattern that matches the index template. This must match the definition in the index template file."
},
"delete-matching-indices": {
"type": "boolean",
"description": "Delete all indices that match the provided index pattern before start of the benchmark (optional, defaults to true)."
},
"template": {
"type": "string",
"description": "Index template file name."
}
},
"required": [
"name",
"index-pattern",
"template"
]
}
},
"indices": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Index",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the index to create."
},
"types": {
"type": "array",
"minItems": 1,
"uniqueItems": true
}
},
"required": [
"name"
]
}
},
"data-streams": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Data Stream",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the data stream to create."
}
},
"required": [
"name"
]
}
},
"corpora": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "Corpus",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the document corpus."
},
"base-url": {
"type": "string",
"format": "uri",
"description": "The default base URL for this document corpus. Has to be a publicly accessible http or https URL. If not specified, Rally will not attempt to download data and assume that it will be available locally."
},
"source-format": {
"type": "string",
"description": "Defines in which format Rally should interpret the data file specified by 'source-file'. Currently, only 'bulk' is supported."
},
"includes-action-and-meta-data": {
"type": "boolean",
"description": "Whether or not the source file already contains an action-and-meta-data line (default: false)."
},
"target-index": {
"type": "string",
"description": "The name of the associated index (if any)."
},
"target-data-stream": {
"type": "string",
"description": "The name of the associated data stream (if any)."
},
"target-type": {
"type": "string",
"description": "The name of the associated document type (if any)."
},
"meta": {
"type": "object",
"description": "Meta-information for a corpus."
},
"documents": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"base-url": {
"type": "string",
"format": "uri",
"description": "The root URL for these documents."
},
"source-file": {
"type": "string",
"description": "Name of file containing documents. This file has to be compressed either as bz2, zip or tar.gz and must contain exactly one JSON file with the same name (Examples: documents.json.bz2, documents.zip (which should contain one file called 'documents.json'))."
},
"source-format": {
"type": "string",
"description": "Defines in which format Rally should interpret the data file specified by 'source-file'. Currently, only 'bulk' is supported."
},
"document-count": {
"type": "integer",
"minimum": 1,
"description": "Number of documents in the documents file. This number will be used to verify that all documents have been indexed successfully."
},
"includes-action-and-meta-data": {
"type": "boolean",
"description": "Whether or not the source file already contains an action-and-meta-data line (default: false)."
},
"compressed-bytes": {
"type": "integer",
"minimum": 1,
"description": "The size in bytes of the compressed document file. This number is used to show users how much data will be downloaded by Rally and also to check whether the download is complete."
},
"uncompressed-bytes": {
"type": "integer",
"minimum": 1,
"description": "The size in bytes of the documents file after decompression."
},
"target-index": {
"type": "string",
"description": "The name of the associated index (if any)."
},
"target-type": {
"type": "string",
"description": "The name of the associated document type (if any)."
},
"meta": {
"type": "object",
"description": "Meta-information for a source file."
}
},
"required": [
"source-file"
]
}
}
},
"required": [
"name",
"documents"
]
}
},
"operations": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"description": "The 'operations' block describes the operations that can be executed. These can be reused later in the 'challenges' block which describes the actual execution schedule.",
"items": {
"title": "Operation",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A human-readable name of this operation"
},
"meta": {
"type": "object",
"description": "Meta-information which will be added to each metrics-record of this operation."
},
"operation-type": {
"type": "string",
"description": "Type of this operation."
},
"request-timeout": {
"type": "number",
"minimum": 0,
"description": "Client-side per-request timeout in seconds for this operation."
},
"bulk-size": {
"type": "integer",
"minimum": 1,
"description": "[Only for type == 'index']: Defines the bulk size."
},
"pipeline": {
"type": "string",
"description": "[Only for type == 'index']: Defines the name of the ingest node pipeline to use (only supported from Elasticsearch 5.0)."
},
"conflicts": {
"type": "string",
"enum": [
"sequential",
"random"
],
"description": "[Only for type == 'index']: Type of index conflicts to simulate. If not specified, no conflicts will be simulated. Valid values are: 'sequential' (A document id is replaced with a document id with a sequentially increasing id), 'random' (A document id is replaced with a document id with a random other id)."
},
"clients": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 1,
"maximum": 1024,
"description": "Number of clients which should execute this operation."
},
"compression": {
"type": "boolean",
"description": "Whether to compress requests on the client."
}
},
"required": [
"count"
]
},
"cache": {
"type": "boolean",
"description": "[Only for type 'search']: Whether to use the query request cache. By default, Rally will define no value thus the default depends on the benchmark candidate settings and Elasticsearch version."
},
"index": {
"type": "string",
"description": "[Only for type 'search']: The index or index pattern against which the query should be executed. This property is only necessary if there is more than one index or the index contains more than one type. Otherwise, Rally will derive the index and type by itself."
},
"type": {
"type": "string",
"description": "[Only for type 'search']: The type against which the query should be executed. This property is only necessary if there is more than one index or the index contains more than one type. Otherwise, Rally will derive the index and type by itself."
},
"pages": {
"type": "integer",
"minimum": 1,
"description": "[Only for type 'search']: Number of pages to retrieve. If this parameter is present, a scroll query will be executed."
},
"results-per-page": {
"type": "integer",
"minimum": 1,
"description": "[Only for type 'search']: Number of documents to retrieve per page for scroll queries."
},
"body": {
"type": "object",
"description": "[Only for type 'search']: The query body."
},
"mode": {
"type": "string",
"enum": ["blocking", "polling"],
"description": "[Only for type 'force-merge']: Determines whether forced merge is blocking, causing a potential client timeout, or if it polls until no further force merge tasks."
},
"poll-period": {
"type": "integer",
"minimum": 1,
"description": "[Only for type 'force-merge']: Poll period in seconds for which to check action completion. Used on force-merge action when mode is 'polling' to determine periodicity of check to tasks API for merge completion. By default, set to 10s."
}
},
"required": [
"name",
"operation-type"
]
}
},
"challenges": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "#/definitions/challenge"
}
},
"challenge": {
"$ref": "#/definitions/challenge"
},
"schedule": {
"$ref": "#/definitions/schedule"
}
}
}