Skip to content

Commit

Permalink
Wait until cluster health is green (#146)
Browse files Browse the repository at this point in the history
With this commit we retry the cluster health check until the cluster is
green. Without this change the cluster health check might time out
before the desired status has been reached and the benchmark continues
earlier than intended.
  • Loading branch information
danielmitterdorfer committed Dec 1, 2020
1 parent d3e0622 commit e783213
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 39 deletions.
3 changes: 2 additions & 1 deletion eql/track.json
Expand Up @@ -41,7 +41,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
6 changes: 4 additions & 2 deletions eventdata/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -71,7 +72,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
12 changes: 8 additions & 4 deletions geonames/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -229,7 +230,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -282,7 +284,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -336,7 +339,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
9 changes: 6 additions & 3 deletions geopoint/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -104,7 +105,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -168,7 +170,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
9 changes: 6 additions & 3 deletions geopointshape/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -90,7 +91,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -152,7 +154,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion geoshape/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion http_logs/challenges/common/default-schedule.json
Expand Up @@ -15,7 +15,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{%- if runtime_script_grok is defined %}
Expand Down
15 changes: 10 additions & 5 deletions http_logs/challenges/default.json
Expand Up @@ -34,7 +34,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -95,7 +96,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -153,7 +155,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -217,7 +220,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -275,7 +279,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
6 changes: 4 additions & 2 deletions nested/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -128,7 +129,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
12 changes: 8 additions & 4 deletions noaa/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -127,7 +128,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -187,7 +189,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -360,7 +363,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
18 changes: 12 additions & 6 deletions nyc_taxis/challenges/default.json
Expand Up @@ -24,7 +24,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -108,7 +109,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -164,7 +166,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -217,7 +220,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -440,7 +444,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -514,7 +519,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion percolator/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
12 changes: 8 additions & 4 deletions pmc/challenges/default.json
Expand Up @@ -30,7 +30,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -124,7 +125,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -185,7 +187,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -247,7 +250,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion so/challenges/default.json
Expand Up @@ -20,7 +20,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down

0 comments on commit e783213

Please sign in to comment.