summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-08-04 14:48:17 +0100
committerGitHub <noreply@github.com>2017-08-04 14:48:17 +0100
commitfac865bf6571a36859d53a0073d2f914dc769c20 (patch)
tree4c413bd80204cc67ef2a858f86e8cb8f6bf316df
parent885c7e277d190ee606a7d4cf57a4991ec232fa6b (diff)
downloadchat-fac865bf6571a36859d53a0073d2f914dc769c20.tar.gz
chat-fac865bf6571a36859d53a0073d2f914dc769c20.tar.bz2
chat-fac865bf6571a36859d53a0073d2f914dc769c20.zip
Set Elasticsearch replica count default to 1. (#7108)
-rw-r--r--config/config.json4
-rw-r--r--model/config.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/config.json b/config/config.json
index 9e5562843..310fe1ce7 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 c13540580..5b0916cd3 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
)