summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-05-21 16:44:41 +0000
committerEvan Read <eread@gitlab.com>2019-05-21 16:44:41 +0000
commitab7e8475ce15e57509d7a22127deed36431a66e5 (patch)
treea58648f5179a0c16170d0382b543c58f772cbba2
parentac233e8352f98d433f16bb6d9930d67f1c4c0bb5 (diff)
parent4ab80f4dcbbc9357784950350c5c5ec32232695e (diff)
downloadgitlab-ce-ab7e8475ce15e57509d7a22127deed36431a66e5.tar.gz
Merge branch 'docs/elastic' into 'master'
Port elasticsearch.md changes to EE See merge request gitlab-org/gitlab-ce!28549
-rw-r--r--doc/integration/elasticsearch.md24
1 files changed, 22 insertions, 2 deletions
diff --git a/doc/integration/elasticsearch.md b/doc/integration/elasticsearch.md
index d1d12dfd064..15176ede733 100644
--- a/doc/integration/elasticsearch.md
+++ b/doc/integration/elasticsearch.md
@@ -340,10 +340,30 @@ curl --request PUT localhost:9200/gitlab-production/_settings --data '{
} }'
```
-A force merge should be called after enabling the refreshing above:
+A force merge should be called after enabling the refreshing above.
+
+For Elasticsearch 6.x, before proceeding with the force merge, the index should be in read-only mode:
+
+```bash
+curl --request PUT localhost:9200/gitlab-production/_settings --data '{
+ "settings": {
+ "index.blocks.write": true
+ } }'
+```
+
+Then, initiate the force merge:
```bash
-curl --request POST 'http://localhost:9200/_forcemerge?max_num_segments=5'
+curl --request POST 'http://localhost:9200/gitlab-production/_forcemerge?max_num_segments=5'
+```
+
+After this, if your index is in read-only, switch back to read-write:
+
+```bash
+curl --request PUT localhost:9200/gitlab-production/_settings --data '{
+ "settings": {
+ "index.blocks.write": false
+ } }'
```
Enable Elasticsearch search in **Admin > Settings > Integrations**. That's it. Enjoy it!