Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 02ac991

Browse files
authored
Merge pull request #643 from elastic/GlenRSmith-patch-1
Add synced flush
2 parents 03c3ba4 + e98d088 commit 02ac991

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

520_Post_Deployment/40_rolling_restart.asciidoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ What we want to do is tell Elasticsearch to hold off on rebalancing, because
2020
we have more knowledge about the state of the cluster due to external factors.
2121
The procedure is as follows:
2222

23-
1. If possible, stop indexing new data. This is not always possible, but will
23+
1. If possible, stop indexing new data and perform a synced flush. This is not always possible, but will
2424
help speed up recovery time.
25-
25+
A synced flush request is a “best effort” operation. It will fail if there are any pending indexing operations, but it is safe to reissue the request multiple times if necessary.
26+
+
27+
[source,js]
28+
----
29+
POST /_flush/synced
30+
----
2631
2. Disable shard allocation. This prevents Elasticsearch from rebalancing
2732
missing shards until you tell it otherwise. If you know the maintenance window will be
2833
short, this is a good idea. You can disable allocation as follows:

0 commit comments

Comments
 (0)