forked from elastic/elasticsearch
/
83345.yaml
36 lines (33 loc) · 1 KB
/
83345.yaml
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
28
29
30
31
32
33
34
35
36
pr: 83345
summary: Add min_* conditions to rollover
area: ILM+SLM
type: enhancement
issues: []
highlight:
title: Minimum conditions for the rollover API and ILM actions
body: |-
The rollover API and ILM actions now support minimum conditions for rollover.
Minimum conditions prevent rollover from occuring until they are met. That is, an index
will rollover once one or more max conditions are satisfied and all min conditions are satisfied.
As an example, the following ILM policy would roll an index over if it is at least 7 days old or
at least 100 gigabytes, but only as long as the index is not empty.
[source,console]
----
PUT _ilm/policy/my_policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover" : {
"max_age": "7d",
"max_size": "100gb",
"min_docs": 1
}
}
}
}
}
}
----
notable: true