Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

dakrone
Copy link
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
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team 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 Meta label for data/management team v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants