File: option_mns.md

package info (click to toggle)
elasticsearch-curator 8.0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,716 kB
  • sloc: python: 17,838; makefile: 159; sh: 156
file content (27 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/option_mns.html
---

# max_num_segments [option_mns]

::::{note}
This setting is required when using the [forceMerge action](/reference/forcemerge.md).
::::


```yaml
action: forcemerge
description: >-
  Perform a forceMerge on selected indices to 'max_num_segments' per shard
options:
  max_num_segments: 2
  timeout_override: 21600
filters:
- filtertype: ...
```

The value for this setting is the cutoff number of segments per shard.  Indices which have more than this number of segments per shard will remain in the index list.

There is no default value. This setting must be set by the user or an exception will be raised, and execution will halt.