Skip to content

Commit

Permalink
Use a single shard for metrics indices
Browse files Browse the repository at this point in the history
With this commit we explicitly set the number of shards in all metrics
indices to one. We roll indices every month so there is no reason to
have multiple shards.

Relates #523
  • Loading branch information
danielmitterdorfer authored Jun 14, 2018
1 parent 2af6db9 commit 02a6515
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion esrally/resources/metrics-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"template": "rally-metrics-*",
"settings": {
"index": {
"refresh_interval": "5s"
"refresh_interval": "5s",
"number_of_shards": 1
}
},
"mappings": {
Expand Down
3 changes: 2 additions & 1 deletion esrally/resources/races-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"template": "rally-races-*",
"settings": {
"index": {
"refresh_interval": "5s"
"refresh_interval": "5s",
"number_of_shards": 1
}
},
"mappings": {
Expand Down
3 changes: 2 additions & 1 deletion esrally/resources/results-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"template": "rally-results-*",
"settings": {
"index": {
"refresh_interval": "5s"
"refresh_interval": "5s",
"number_of_shards": 1
}
},
"mappings": {
Expand Down

0 comments on commit 02a6515

Please sign in to comment.