Skip to content

Commit 4ea6db0

Browse files
Update data-tiers.md (#3003)
The existing description of "automatic data tier migration" did not explicitly call out the impact of setting "migrate": { "enabled": false } without specifying manual allocation rules. The setting alone can prevent data from moving to a data tier while "succeeding" through the ILM "complete" phase. I am also including an image that may be a useful addition contextually: <img width="1218" height="264" alt="data-allocation-migrate" src="https://github.com/user-attachments/assets/b7f8b071-ddc6-4913-b03c-54e90425a4ff" /> --------- Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
1 parent 14dac79 commit 4ea6db0

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

manage-data/lifecycle/data-tiers.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,4 +494,33 @@ This setting will not unallocate a currently allocated shard, but might prevent
494494

495495
### Automatic data tier migration [data-tier-migration]
496496

497-
{{ilm-init}} automatically transitions managed indices through the available data tiers using the [migrate](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-migrate.md) action. By default, this action is automatically injected in every phase. You can explicitly specify the migrate action with `"enabled": false` to [disable automatic migration](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-migrate.md#ilm-disable-migrate-ex), for example, if you’re using the [allocate action](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-allocate.md) to manually specify allocation rules.
497+
{{ilm-init}} automatically transitions managed indices through the available data tiers using the [migrate](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-migrate.md) action. By default, this action is automatically injected in every phase.
498+
499+
### Disable data tier allocation [data-tier-allocation]
500+
You can explicitly disable data allocation for data tier migration in an ILM policy with the following setting:
501+
```sh
502+
"migrate": {
503+
"enabled": false
504+
}
505+
```
506+
507+
For example:
508+
509+
```sh
510+
"cold": {
511+
"min_age": "15m",
512+
"actions": {
513+
"set_priority": {
514+
"priority": 0
515+
},
516+
"migrate": {
517+
"enabled": false
518+
}
519+
}
520+
},
521+
```
522+
523+
Defining the `migrate` action with `"enabled": false` for a data tier [disables automatic {{ilm-init}} shard migration](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-migrate.md#ilm-disable-migrate-ex). This is useful if, for example, you’re using the [allocate action](elasticsearch://reference/elasticsearch/index-lifecycle-actions/ilm-allocate.md) to manually specify allocation rules.
524+
525+
#### Important Note:
526+
Do not disable automatic {{ilm-init}} migration without manually defining {{ilm-init}} allocation rules. If data migration is disabled without allocation rules defined, this can prevent data from moving to the specified data tier, even though the data has successfully moved through the {{ilm-init}} policy with a status of `complete`.

0 commit comments

Comments
 (0)