Skip to content

Commit 2f6188a

Browse files
Mueed Chaudhryjpountz
Mueed Chaudhry
authored andcommitted
[docs] add warning for read-write indices in force merge documentation (#28869)
1 parent 67998d7 commit 2f6188a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/indices/forcemerge.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ This call will block until the merge is complete. If the http connection is
1010
lost, the request will continue in the background, and any new requests will
1111
block until the previous force merge is complete.
1212

13+
WARNING: Force merge should only be called against *read-only indices*. Running
14+
force merge against a read-write index can cause very large segments to be produced
15+
(>5Gb per segment), and the merge policy will never consider it for merging again until
16+
it mostly consists of deleted docs. This can cause very large segments to remain in the shards.
17+
1318
[source,js]
1419
--------------------------------------------------
1520
POST /twitter/_forcemerge

0 commit comments

Comments
 (0)