Skip to content

[7.x] Add index.routing.allocation.include._tier_preference setting (#62589)#62667

Merged
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-62589
Sep 18, 2020
Merged

[7.x] Add index.routing.allocation.include._tier_preference setting (#62589)#62667
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-62589

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Sep 18, 2020

Backports the following commits to 7.x:

This commit adds the `index.routing.allocation.prefer._tier` setting to the
`DataTierAllocationDecider`. This special-purpose allocation setting lets a user specify a
preference-based list of tiers for an index to be assigned to. For example, if the setting were set
to:

```
"index.routing.allocation.prefer._tier": "data_hot,data_warm,data_content"
```

If the cluster contains any nodes with the `data_hot` role, the decider will only allow them to be
allocated on the `data_hot` node(s). If there are no `data_hot` nodes, but there are `data_warm` and
`data_content` nodes, then the index will be allowed to be allocated on `data_warm` nodes.

This allows us to specify an index's preference for tier(s) without causing the index to be
unassigned if no nodes of a preferred tier are available.

Subsequent work will change the ILM migration to make additional use of this setting.

Relates to elastic#60848
@dakrone dakrone changed the title [7.x] Add index.routing.allocation.prefer._tier setting (#62589) [7.x] Add index.routing.allocation.include._tier_preference setting (#62589) Sep 18, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Features)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Sep 18, 2020
@dakrone dakrone merged commit 4a08928 into elastic:7.x Sep 18, 2020
@dakrone dakrone deleted the backport/7.x/pr-62589 branch September 18, 2020 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants