/
defaults.json
554 lines (549 loc) · 14.8 KB
/
defaults.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
{
"item": {
"data": {
"input": {
// The source file for the content generation
"file": null,
"layer": {
// The maximum count of the data "layers" to be cached into the memory
"cache": 16,
// The size of the content source ring buffer
"size": "4MB"
},
// The initial value for the random data generation
"seed": "7a42d9c483244167"
},
"ranges": {
// The number/range of numbers of the source objects used to concatenate every
// destination object.
"concat": null,
// The fixed byte ranges to update or read (depends on the specified op type)
"fixed": null,
// The count of the random ranges to update or read
"random": 0,
// The size threshold to enable multipart upload if supported by the configured storage driver
"threshold": 0
},
// The size of the data items to process. Doesn't have any effect if item-type=path
"size": "1MB",
// Specifies whether to verify the content while reading the data items or not.
// Doesn't have any effect if load-type != read
"verify": false
},
"input": {
// The source file for the items to process.
// If null the behavior depends on the load type.
"file": null,
// The source path which may be used as items input if not "item-input-file" is specified.
// Also used for the copy mode as the path containing the items to be copied into the output path.
"path": null
},
"naming": {
// Specifies the new items naming order. Has effect only in the case of create load.
// "asc": the new items are named in the ascending order,
// "desc": the new items are named in the descending order,
// "random": the new items are named randomly
"type": "random",
// The name prefix for the processed items.
// A correct value is necessary to pass the content verification in the case of read load.
"prefix": null,
// The radix for the item ids. May be in the range of 2..36.
// A correct value is necessary to pass the content verification in the case of read load.
"radix": 36,
// The start id for the new item ids
"offset": 0,
// The name length for the new items.
// Has effect only in the case of create (if not partial) load
"length": 12
},
"output": {
// The minimum delay between the subsequent I/O operations for each item (chain load).
// 0 means no delay.
"delay": 0,
// Specified the target file for the items processed successfully.
// If null the items info is not saved.
"file": null,
// The target path. Null (default) value leads to path name generation and pre-creation.
"path": null
},
// The type of the item to use, the possible values are: "data", "path", "token".
// In case of filesystem "data" means files and "path" means directories
"type": "data"
},
"load": {
"batch": {
// The count of the items/tasks processed by a single invocation.
// It may be useful to set to 1 for MPU or DLO tests
"size": 4096
},
"generator": {
// Reserved, not used
"addrs": [
"127.0.0.1"
],
"recycle": {
// Specifies whether to recycle the load tasks or not
"enabled": false,
// The maximum number of the unique items processed in the case of the recycle mode
"limit": 1000000
},
// Reserved, not used
"remote": false,
// Defines whether to shuffle or not the items got from the item input,
// what should make the order of the I/O tasks execution randomized
"shuffle": false,
// The relative operations weight for the particular load generator.
// Effective only if used with weighted load step and JSR-223 compliant scenario engine.
// The total step's weight is a sum of all included load generator weights.
// The particular load generator weight is a ratio of its weight value to the total
// step's weight.
"weight": 1
},
"limit": {
// The maxiumum number of concurrenct connections/open files for the test step
"concurrency": 1,
// The maximum number of the operations per second (throughput limit) for the test step.
// 0 means no rate limit.
"rate": 0
},
// The count of the service threads. 0 means automatic value
"service": {
"threads": 0
},
// The operation to process the items, may be "noop", "create", "update", "read" or "delete"
"type": "create"
},
"output": {
// Use colored standard output flag
"color": true,
"metrics": {
"average": {
// The time period for the load step's metrics console output.
// 0 means to not to output the metrics to the console
"period": "10s",
// Persist the average (periodic) metrics if true
"persist": true,
"table": {
"header": {
// Output the metrics table header every N rows
"period": 20
}
}
},
"summary": {
// Output the results.xml file used as a PerfDb input if true
"perfDbResultsFile": false,
// Persist the summary (total) metrics if true
"persist": true
},
"trace": {
// Persist the information about each load operation if true
"persist": false
},
// The concurrency threshold to enable intermediate statistics calculation,
// 0 means no threshold
"threshold": 0
}
},
"storage": {
"auth": {
// The path to a credentials list file, containing the lines of comma-separated uids and secret keys
"file": null,
// The authentication secret if constant and required
"secret": null,
// FS, S3: no effect, Atmos: subtenant, Swift: token
"token": null,
// The authentication identifier if constant and required
"uid": null
},
"driver": {
// Distributed mode: the list of the storage drivers IPs or hostnames,
// may include port numbers to override the default port number value
"addrs": [
"127.0.0.1"
],
// Distributed mode: the common port number to start the storage driver services
"port": 1099,
//
"queue": {
"input": 1000000,
"output": 1000000
},
// Distributed mode: the flag to enable using remote storage drivers
"remote": false,
// The count of the shared/global I/O executor threads. 0 (default) is reserved to use the CPU cores/threads count
"threads": 0,
// The identifier pointing to the one of the registered storage driver implementations to use
"type": "s3"
},
// The "mock" section is used by the storage mock embedded into the system tests runtime
"mock": {
"capacity": 1000000,
"container": {
"capacity": 1000000,
"countLimit": 1000000
},
"fail": {
"connections": 0,
"responses": 0
},
"node": false
},
"net": {
// Socket options
"bindBacklogSize": 0,
"interestOpQueued": false,
"keepAlive": true,
"linger": 0,
"reuseAddr": true,
"rcvBuf": 0,
"sndBuf": 0,
"tcpNoDelay": true,
"timeoutMilliSec": 0,
// Internal Netty's I/O ratio parameter:
// https://github.com/netty/netty/issues/1154#issuecomment-14870909
// it's recommended to make it higher for large request/response payload (>1MB)
"ioRatio": 50,
// The I/O transport to use (see http://netty.io/wiki/native-transports.html for details).
// By default tries to use "nio" (the most compatible).
// For Linux try use "epoll", for MacOS/BSD try use "kqueue"
"transport": "epoll",
// The flag to enable the load through SSL/TLS.
// Currently only HTTPS implementation is available.
// Have no effect if configured storage type is filesystem.
"ssl": false,
"http": {
// Specifies whether filesystem access is enabled or not in the case of S3 or Atmos API
"fsAccess": false,
// Custom HTTP headers section.
// An user may place here a key-value pair which will be used as HTTP header.
"headers": {
"Connection": "Keep-Alive",
"User-Agent": "mongoose/3.6.0"
},
// The HTTP storage namespace.
// WARNING: the default value (null) will not work in the case of Swift API
"namespace": null,
// Specifies whether the versioning storage feature is used or not
"versioning": false
},
"node": {
// The list of the storage node IPs or hostnames to use for HTTP load.
// May include port numbers.
"addrs": [
"127.0.0.1"
],
// The common port number to access the storage nodes,
// may be overridden adding the port number to the storage-driver-net-node-addrs,
// for example: "127.0.0.1:9020,127.0.0.1:9022,..."
"port": 9020,
// The limit for the subsequent connection attempts for each storage endpoint node.
// The node is excluded from the connection pool forever if the node has more
// subsequent connection failures. The default value (0) means no limit.
"connAttemptsLimit": 0
}
}
},
"test": {
"scenario": {
// The default scenario file to run, null means invoking the default.js scenario bundled
// into the distribution
"file": null
},
"step": {
// The test step id. Generated automatically if not specified (null).
// Specifies also the logs sub directory path: log/<STEP_ID>/
"id": null,
"limit": {
// The maximum number of the items to process for any load step. 0 means no limit
"count": 0,
"fail": {
// The maximum number of the failed I/O tasks before the step will be stopped,
// 0 means no limit
"count": 100000,
// Stop the step if failures rate is more than success rate and if the flag is set to true
"rate": false
},
// The maximum size of the data items to process. 0 means no size limit.
"size": 0,
// The maximum time to perform a load step. 0 means no time limit
"time": "0s"
}
}
},
// The Mongoose version
"version": "3.6.0-beta2",
// The aliasing section mapping the old configuration parameters/values to the current ones
"aliasing": [
// v3.0.0
{
"name": "load-threads",
"deprecated": true,
"target": "load-limit-concurrency"
},
{
"name": "run-id",
"deprecated": true,
"target": "test-step-id"
},
{
"name": "noop",
"target": "load-type=noop"
},
{
"name": "create",
"target": "load-type=create"
},
{
"name": "read",
"target": "load-type=read"
},
{
"name": "update",
"target": "load-type=update"
},
{
"name": "delete",
"target": "load-type=delete"
},
{
"name": "atmos-subtenant",
"target": "storage-auth-token"
},
{
"name": "s3-input-bucket",
"target": "item-input-path"
},
{
"name": "s3-output-bucket",
"target": "item-output-path"
},
{
"name": "swift-input-container",
"target": "item-input-path"
},
{
"name": "swift-output-container",
"target": "item-output-path"
},
// v3.2.0
{
"name": "socket-bindBacklogSize",
"deprecated": true,
"target": "storage-net-bindBacklogSize"
},
{
"name": "socket-interestOpQueued",
"deprecated": true,
"target": "storage-net-interestOpQueued"
},
{
"name": "socket-keepAlive",
"deprecated": true,
"target": "storage-net-keepAlive"
},
{
"name": "socket-linger",
"deprecated": true,
"target": "storage-net-linger"
},
{
"name": "socket-reuseAddr",
"deprecated": true,
"target": "storage-net-reuseAddr"
},
{
"name": "socket-rcvBuf",
"deprecated": true,
"target": "storage-net-rcvBuf"
},
{
"name": "socket-sndBuf",
"deprecated": true,
"target": "storage-net-sndBuf"
},
{
"name": "socket-tcpNoDelay",
"deprecated": true,
"target": "storage-net-tcpNoDelay"
},
{
"name": "socket-timeoutMilliSec",
"deprecated": true,
"target": "storage-net-timeOutMilliSec"
},
{
"name": "storage-ssl",
"deprecated": true,
"target": "storage-net-ssl"
},
{
"name": "storage-http-api",
"deprecated": true,
"target": "storage-driver-type"
},
{
"name": "socket-http-fsAccess",
"deprecated": true,
"target": "storage-net-http-fsAccess"
},
{
"name": "storage-http-headers",
"deprecated": true,
"target": "storage-net-http-headers"
},
{
"name": "storage-http-namespace",
"deprecated": true,
"target": "storage-net-http-namespace"
},
{
"name": "storage-http-versioning",
"deprecated": true,
"target": "storage-net-http-versioning"
},
{
"name": "storage-node-addrs",
"deprecated": true,
"target": "storage-net-node-addrs"
},
{
"name": "storage-node-port",
"deprecated": true,
"target": "storage-net-node-port"
},
{
"name": "storage-type",
"deprecated": true,
"target": "storage-driver-type"
},
{
"name": "storage-net-http-api",
"deprecated": true,
"target": "storage-driver-type"
},
// v3.3.0
{
"name": "load-concurrency",
"deprecated": true,
"target": "load-limit-concurrency"
},
{
"name": "load-job-name",
"deprecated": true,
"target": "test-step-id"
},
{
"name": "load-limit-count",
"deprecated": true,
"target": "test-step-limit-count"
},
{
"name": "load-limit-size",
"deprecated": true,
"target": "test-step-limit-size"
},
{
"name": "load-limit-time",
"deprecated": true,
"target": "test-step-limit-time"
},
{
"name": "load-metrics-period",
"deprecated": true,
"target": "test-step-metrics-period"
},
{
"name": "load-metrics-precondition",
"deprecated": true,
"target": "test-step-precondition"
},
{
"name": "load-metrics-threshold",
"deprecated": true,
"target": "test-step-metrics-threshold"
},
{
"name": "scenario-file",
"deprecated": true,
"target": "test-scenario-file"
},
{
"name": "storage-auth-id",
"deprecated": true,
"target": "storage-auth-uid"
},
// v3.4.0
{
"name": "item-data-content-ringSize",
"deprecated": true,
"target": "item-data-input-layer-size"
},
// v3.5.0
{
"name": "test-step-metrics-period",
"deprecated": true,
"target": "output-metrics-period"
},
{
"name": "test-step-metrics-threshold",
"deprecated": true,
"target": "output-metrics-threshold"
},
{
"name": "test-step-name",
"deprecated": true,
"target": "test-step-id"
},
{
"name": "test-step-limit-rate",
"deprecated": true,
"target": "load-limit-rate"
},
{
"name": "item-data-content-file",
"deprecated": true,
"target": "item-data-input-file"
},
{
"name": "item-data-content-seed",
"deprecated": true,
"target": "item-data-input-seed"
},
{
"name": "item-data-content-ring-cache",
"deprecated": true,
"target": "item-data-input-layer-cache"
},
{
"name": "item-data-content-ring-size",
"deprecated": true,
"target": "item-data-input-layer-size"
},
{
"name": "load-circular",
"deprecated": true,
"target": "load-generator-recycle-enabled"
},
{
"name": "load-queue-size",
"deprecated": true,
"target": "load-generator-recycle-limit"
},
{
"name": "storage-driver-io-workers",
"deprecated": true,
"target": "storage-driver-threads"
},
{
"name": "storage-driver-concurrency",
"deprecated": true,
"target": "load-limit-concurrency"
},
{
"name": "load-rate-limit",
"deprecated": true,
"target": "load-limit-rate"
}
]
}