Skip to content

Commit

Permalink
Wait until indices green in generated track (#1007)
Browse files Browse the repository at this point in the history
Currently the track generated by the `create-track` sub-command starts
bulk indexing immediately after creating indices.

This may affect benchmarking results as starting indexing when indices
are still yellow may result in unwanted peer-recovery during indexing.

Wait that all indices are green before indexing in generated tracks.
  • Loading branch information
dliappis authored Jun 3, 2020
1 parent 87c84ea commit bd6ea3f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions esrally/resources/track.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,32 @@
}
]
}{% endfor %}
],{% raw %}
],
"schedule": [
{
"operation": "delete-index"
},
},{% raw %}
{
"operation": {
"operation-type": "create-index",
"settings": {{index_settings | default({}) | tojson}}
}
},{% endraw %}
{
"operation": {
"operation-type": "cluster-health",
"index": {{ indices | map(attribute='name') | list | join(',') | tojson }},{% raw %}
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
}
},
{
"operation": {
"operation-type": "bulk",
"bulk-size": {{bulk_size | default(5000)}},
"ingest-percentage": {{ingest_percentage | default(100)}}
"operation-type": "bulk",
"bulk-size": {{bulk_size | default(5000)}},
"ingest-percentage": {{ingest_percentage | default(100)}}
},
"clients": {{bulk_indexing_clients | default(8)}}
}
Expand Down

0 comments on commit bd6ea3f

Please sign in to comment.