File: fe_max_num_segments.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 (22 lines) | stat: -rw-r--r-- 798 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
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/fe_max_num_segments.html
---

# max_num_segments [fe_max_num_segments]

::::{note}
This setting is only used with the [forcemerged](/reference/filtertype_forcemerged.md) filtertype.
::::


```yaml
- filtertype: forcemerged
  max_num_segments: 2
  exclude: True
```

The value for this setting is the cutoff number of segments per shard.  Indices which have this number of segments per shard, or fewer, will be actionable depending on the value of [exclude](/reference/fe_exclude.md), which is `True` by default for the [forcemerged](/reference/filtertype_forcemerged.md) filter type.

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