From fac865bf6571a36859d53a0073d2f914dc769c20 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 4 Aug 2017 14:48:17 +0100 Subject: [PATCH] Set Elasticsearch replica count default to 1. (#7108) --- config/config.json | 4 ++-- model/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.json b/config/config.json index 9e5562843e..310fe1ce79 100644 --- a/config/config.json +++ b/config/config.json @@ -293,7 +293,7 @@ "EnableIndexing": false, "EnableSearching": false, "Sniff": true, - "PostIndexReplicas": 2, + "PostIndexReplicas": 1, "PostIndexShards": 1 }, "DataRetentionSettings": { @@ -306,4 +306,4 @@ "PluginSettings": { "Plugins": {} } -} \ No newline at end of file +} diff --git a/model/config.go b/model/config.go index c13540580b..5b0916cd34 100644 --- a/model/config.go +++ b/model/config.go @@ -123,7 +123,7 @@ const ( ELASTICSEARCH_SETTINGS_DEFAULT_CONNECTION_URL = "" ELASTICSEARCH_SETTINGS_DEFAULT_USERNAME = "" ELASTICSEARCH_SETTINGS_DEFAULT_PASSWORD = "" - ELASTICSEARCH_SETTINGS_DEFAULT_POST_INDEX_REPLICAS = 2 + ELASTICSEARCH_SETTINGS_DEFAULT_POST_INDEX_REPLICAS = 1 ELASTICSEARCH_SETTINGS_DEFAULT_POST_INDEX_SHARDS = 1 )