Hi. When trying to create a custom race which involves 4 indices, i get the following error:
[ERROR] Cannot race. Error in track preparator (("'index' is mandatory", None))
I will share my track.json here:
{
"name": "Sample track",
"indices": [
{
"name": "devices",
"auto-managed": false,
"body": "devices-index.json",
"types": [ "device" ]
},
{
"name": "alarms",
"auto-managed": false,
"body": "alarm-index.json",
"types": [ "alarm" ]
},
{
"name": "measurements",
"auto-managed": false,
"body": "measurements-index.json",
"types": [ "measurement" ]
},
{
"name": "vee",
"auto-managed": false,
"body": "vee-index.json",
"types": [ "vee_statistic" ]
}
],
"corpora": [
{
"name": "devices",
"documents": [
{
"source-file": "/home/.../generated_devices.json",
"document-count": 30,
"uncompressed-bytes": 15229,
"target-type": "device",
"target-index": "devices"
}
]
},
{
"name": "alarms",
"documents": [
{
"source-file": "/home/.../generated_alarms.json",
"document-count": 300,
"uncompressed-bytes": 1391,
"target-type": "alarm",
"target-index": "alarms"
}
]
},
{
"name": "measurements",
"documents": [
{
"source-file": "/home/.../generated_measurements.json",
"document-count": 11520,
"uncompressed-bytes": 4693038,
"target-type": "measurement",
"target-index": "measurements"
}
]
},
{
"name": "vee",
"documents": [
{
"source-file": "/home/.../generated_vee.json",
"document-count": 120,
"uncompressed-bytes": 59052,
"target-type": "vee_statistic",
"target-index": "vee"
}
]
}
],
"schedule": [
{
"operation": {
"operation-type": "delete-index"
}
},
{
"operation": {
"operation-type": "create-index"
}
},
{
"operation": {
"operation-type": "cluster-health",
"request-params": {
"wait_for_status": "green"
}
}
},
{
"operation": {
"name": "query-match-all",
"operation-type": "search",
"body": {
"query": {
"match_all": {}
}
}
},
"clients": 8,
"warmup-iterations": 1000,
"iterations": 1000,
"target-throughput": 100
}
]
}
when I try to run this track with just one index devices
I succeed. Yet, when adding multiple indices, I fail. It seems like I am doing something wrong when either defining multiple indices, or multiple corpora.
Mapping files are in the same directory as track.json
Any help will be appreciated