From 02a65150b9828e9c8f5c6be8460b9323cc62e425 Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Thu, 14 Jun 2018 08:54:14 +0200 Subject: [PATCH] Use a single shard for metrics indices 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 --- esrally/resources/metrics-template.json | 3 ++- esrally/resources/races-template.json | 3 ++- esrally/resources/results-template.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/esrally/resources/metrics-template.json b/esrally/resources/metrics-template.json index ea7f62d63..08bcd1a80 100644 --- a/esrally/resources/metrics-template.json +++ b/esrally/resources/metrics-template.json @@ -2,7 +2,8 @@ "template": "rally-metrics-*", "settings": { "index": { - "refresh_interval": "5s" + "refresh_interval": "5s", + "number_of_shards": 1 } }, "mappings": { diff --git a/esrally/resources/races-template.json b/esrally/resources/races-template.json index 67eea7746..217bd39b6 100644 --- a/esrally/resources/races-template.json +++ b/esrally/resources/races-template.json @@ -2,7 +2,8 @@ "template": "rally-races-*", "settings": { "index": { - "refresh_interval": "5s" + "refresh_interval": "5s", + "number_of_shards": 1 } }, "mappings": { diff --git a/esrally/resources/results-template.json b/esrally/resources/results-template.json index 3c391652a..29b3bc4bf 100644 --- a/esrally/resources/results-template.json +++ b/esrally/resources/results-template.json @@ -2,7 +2,8 @@ "template": "rally-results-*", "settings": { "index": { - "refresh_interval": "5s" + "refresh_interval": "5s", + "number_of_shards": 1 } }, "mappings": {