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 da1d95d commit 18663e8
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 23 deletions.
3 changes: 2 additions & 1 deletion 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
9 changes: 6 additions & 3 deletions geonames/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 @@ -167,7 +168,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -221,7 +223,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 http_logs/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 @@ -109,7 +110,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -167,7 +169,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
6 changes: 4 additions & 2 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
12 changes: 8 additions & 4 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 @@ -96,7 +97,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -149,7 +151,8 @@
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
}
},
"retry-until-success": true
}
},
{
Expand Down Expand Up @@ -372,7 +375,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
9 changes: 6 additions & 3 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 @@ -186,7 +188,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 18663e8

Please sign in to comment.