Skip to content

Commit 6595ded

Browse files
committed
Recommend index templates when using ILM Rollover (#35922)
Because rollover does not propogate the ILM policy in use, add a note to the docs recommending the use of index templates when using rollover.
1 parent f44bd9f commit 6595ded

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/reference/ilm/set-up-lifecycle-policy.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ To set the policy for an index there are two options:
4545
1. Apply the policy to an index template and bootstrap creating the first index
4646
2. Apply the policy to a new index in a create index request
4747

48+
[[applying-policy-to-template]]
4849
=== Applying a policy to an index template
4950

5051
beta[]

docs/reference/ilm/using-policies-rollover.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ met. Because the criteria are checked periodically, the index might grow
2121
slightly beyond the specified threshold. To control how often the critera are
2222
checked, specify the `indices.lifecycle.poll_interval` cluster setting.
2323

24+
IMPORTANT: New indices created via rollover will not automatically inherit the
25+
policy used by the old index, and will not use any policy by default. Therefore,
26+
it is highly recommended to apply the policy via
27+
<<applying-policy-to-template,index template>>, including a Rollover alias
28+
setting, for your indices which specifies the policy you wish to use for each
29+
new index.
30+
2431
The rollover action takes the following parameters:
2532

2633
.`rollover` Action Parameters

0 commit comments

Comments
 (0)