From 01f531864299cf3f99de9252ffec4115a98ba155 Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Fri, 15 Dec 2017 18:32:34 -0500 Subject: [PATCH] [Watcher] Use index.auto_expand_replicas: 0-1 (elastic/x-pack-elasticsearch#3284) This changes the default behavior of .watch* indices to be green on one-node clusters, instead of constantly yellow. Original commit: elastic/x-pack-elasticsearch@cdaee7cd72ad4b542ab7031121bd50f04be6a143 --- plugin/src/main/resources/watch-history.json | 2 ++ plugin/src/main/resources/watches.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugin/src/main/resources/watch-history.json b/plugin/src/main/resources/watch-history.json index af4b221b93e..a26305b3554 100644 --- a/plugin/src/main/resources/watch-history.json +++ b/plugin/src/main/resources/watch-history.json @@ -4,6 +4,8 @@ "settings": { "xpack.watcher.template.version": "${xpack.watcher.template.version}", "index.number_of_shards": 1, + "index.number_of_replicas": 0, + "index.auto_expand_replicas": "0-1", "index.format": 6 }, "mappings": { diff --git a/plugin/src/main/resources/watches.json b/plugin/src/main/resources/watches.json index 278c6275e69..ad744c44f11 100644 --- a/plugin/src/main/resources/watches.json +++ b/plugin/src/main/resources/watches.json @@ -3,6 +3,8 @@ "order": 2147483647, "settings": { "index.number_of_shards": 1, + "index.number_of_replicas": 0, + "index.auto_expand_replicas": "0-1", "index.format": 6, "index.priority": 800 },