You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: For [flush](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-flush) and [translog](/reference/elasticsearch/index-settings/translog.md)`fsync` operations. Thread pool type is `scaling` with a keep-alive of `5m` and a default maximum size of `min(5, (`[`# of allocated processors`](#node.processors)`) / 2)`.
66
66
67
-
`merge`
67
+
`merge` {applies_to}`stack: ga 9.1`
68
68
: For [merge](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-merge.html) operations of all the shards on the node. Thread pool type is `scaling` with a keep-alive of `5m` and a default maximum size of [`# of allocated processors`](#node.processors).
69
69
70
70
`force_merge`
71
71
: For waiting on blocking [force merge](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge) operations. Thread pool type is `fixed` with a size of `max(1, (`[`# of allocated processors`](#node.processors)`) / 8)` and an unbounded queue size.
72
72
73
+
In {{stack}} 9.0 and earlier, this thread pool is used for all force merge operations, not just blocking operations.
74
+
73
75
`management`
74
76
: For cluster management. Thread pool type is `scaling` with a keep-alive of `5m` and a default maximum size of `5`.
Copy file name to clipboardExpand all lines: docs/reference/elasticsearch/index-settings/merge.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,9 @@ The merge process uses auto-throttling to balance the use of hardware resources
19
19
## Merge scheduling [merge-scheduling]
20
20
21
21
The merge scheduler controls the execution of merge operations when they are needed.
22
-
Merges run on the dedicated `merge` thread pool.
22
+
23
+
24
+
{applies_to}`stack: ga 9.1` Merges run on the dedicated `merge` thread pool.
23
25
Smaller merges are prioritized over larger ones, across all shards on the node.
24
26
Merges are disk IO throttled so that bursts, while merging activity is otherwise low, are smoothed out in order to not impact indexing throughput.
25
27
There is no limit on the number of merges that can be enqueued for execution on the thread pool.
@@ -28,21 +30,27 @@ However, beyond a certain per-shard limit, after merging is completely disk IO u
28
30
The available disk space is periodically monitored, such that no new merge tasks are scheduled for execution when the available disk space is low.
29
31
This is in order to prevent that the temporary disk space, which is required while merges are executed, completely fills up the disk space on the node.
30
32
33
+
:::{note}
34
+
In {{stack}} 9.0 and earlier, merges do not use a dedicated thread pool. Merges run in separate threads, and when the maximum number of threads is reached, further merges will wait until a merge thread becomes available.
35
+
:::
36
+
37
+
### Merge scheduler settings
38
+
31
39
The merge scheduler supports the following *dynamic* settings:
32
40
33
41
`index.merge.scheduler.max_thread_count`
34
42
: The maximum number of threads on a **single** shard that may be merging at once. Defaults to `Math.max(1, Math.min(4, <<node.processors, node.processors>> / 2))` which works well for a good solid-state-disk (SSD). If your index is on spinning platter drives instead, decrease this to 1.
35
43
36
-
`indices.merge.disk.check_interval`
44
+
`indices.merge.disk.check_interval` {applies_to}`stack: ga 9.1`
37
45
: The time interval for checking the available disk space. Defaults to `5s`.
38
46
39
-
`indices.merge.disk.watermark.high`
47
+
`indices.merge.disk.watermark.high` {applies_to}`stack: ga 9.1`
40
48
: Controls the disk usage watermark, which defaults to `95%`, beyond which no merge tasks can start execution.
41
49
The disk usage tally includes the estimated temporary disk space still required by all the currently executing merge tasks.
42
50
Any merge task scheduled *before* the limit is reached continues execution, even if the limit is exceeded while executing
43
51
(merge tasks are not aborted).
44
52
45
-
`indices.merge.disk.watermark.high.max_headroom`
53
+
`indices.merge.disk.watermark.high.max_headroom` {applies_to}`stack: ga 9.1`
46
54
: Controls the max headroom for the merge disk usage watermark, in case it is specified as percentage or ratio values.
47
55
Defaults to `100GB` when `indices.merge.disk.watermark.high` is not explicitly set.
48
56
This caps the amount of free disk space before merge scheduling is blocked.
0 commit comments