4
4
== Configure rollover
5
5
[[using-policies-rollover]]
6
6
You control when the rollover action is triggered by specifying one or more
7
- rollover parameters. The rollover is performed once any of the criteria are
8
- met. Because the criteria are checked periodically, the index might grow
9
- slightly beyond the specified threshold. To control how often the criteria are
10
- checked, specify the `indices.lifecycle.poll_interval` cluster setting.
7
+ rollover criteria:
8
+
9
+ * Maximum size (the combined size of all primary shards in the index)
10
+ * Maximum document count
11
+ * Maximum age
12
+
13
+ The rollover is performed once any of the criteria are met.
14
+ Because the criteria are checked periodically, the index might grow
15
+ slightly beyond the specified threshold.
16
+ To control how often the criteria are checked,
17
+ specify the `indices.lifecycle.poll_interval` cluster setting.
11
18
12
19
IMPORTANT: New indices created via rollover will not automatically inherit the
13
20
policy used by the old index, and will not use any policy by default. Therefore,
@@ -16,24 +23,6 @@ it is highly recommended to apply the policy via
16
23
setting, for your indices which specifies the policy you wish to use for each
17
24
new index.
18
25
19
- The rollover action takes the following parameters:
20
-
21
- [[rollover-action-params]]
22
- .`rollover` Action Parameters
23
- [options="header"]
24
- |===
25
- |Name |Description
26
- |max_size |The maximum estimated size the primary shard of the index is allowed
27
- to grow to. Defaults to `null`. Optional.
28
- |max_docs |The maximum number of document the index should
29
- contain. Defaults to `null`. Optional.
30
- |max_age |The maximum age of the index. Defaults to `null`. Optional.
31
- |===
32
-
33
- These parameters are used to determine when the index is considered "full" and
34
- a rollover should be performed. Where multiple criteria are defined the
35
- rollover operation will be performed once any of the criteria are met.
36
-
37
26
The following request defines a policy with a rollover action that triggers
38
27
when the index size reaches 25GB. The old index is subsequently deleted after
39
28
30 days.
@@ -127,7 +116,7 @@ the new index, enabling indexing to continue uninterrupted.
127
116
[[skipping-rollover]]
128
117
=== Skipping Rollover
129
118
130
- The `index.lifecycle.indexing_complete` setting indicates to {ilm} whether this
119
+ The `index.lifecycle.indexing_complete` setting indicates to {ilm-init } whether this
131
120
index has already been rolled over. If it is set to `true`, that indicates that
132
121
this index has already been rolled over and does not need to be rolled over
133
122
again. Therefore, {ilm} will skip any Rollover Action configured in the
0 commit comments