Skip to content

Store DataTier Preference directly on IndexMetadata (#78668)#78874

Merged
original-brownbear merged 2 commits intoelastic:7.xfrom
original-brownbear:78668-7.x
Oct 8, 2021
Merged

Store DataTier Preference directly on IndexMetadata (#78668)#78874
original-brownbear merged 2 commits intoelastic:7.xfrom
original-brownbear:78668-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

The data tier preference is very expensive to parse out of the setting string
repeatedly for large number of indices when using it in the data tier allocation decider.

=> as done with other index settings relevant to allocation, this commit moves the data tier
preference to a field in IndexMetadata. The required moving the DataTier class itself to
server. In a follow-up we can look into making the setting a list setting to remove the
duplication around turning the string value into a list in various places.

backport of #78668

The data tier preference is very expensive to parse out of the setting string
repeatedly for large number of indices when using it in the data tier allocation decider.

=> as done with other index settings relevant to allocation, this commit moves the data tier
preference to a field in `IndexMetadata`. The required moving the `DataTier` class itself to
`server`. In a follow-up we can look into making the setting a list setting to remove the
duplication around turning the string value into a list in various places.
@original-brownbear original-brownbear added >non-issue :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) backport labels Oct 8, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Oct 8, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@original-brownbear original-brownbear merged commit e99c8ac into elastic:7.x Oct 8, 2021
@original-brownbear original-brownbear deleted the 78668-7.x branch October 8, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >non-issue Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants