Skip to content

Allow indices lookup to be built lazily#78827

Merged
elasticsearchmachine merged 2 commits intoelastic:7.xfrom
martijnvg:backport_78745
Oct 7, 2021
Merged

Allow indices lookup to be built lazily#78827
elasticsearchmachine merged 2 commits intoelastic:7.xfrom
martijnvg:backport_78745

Conversation

@martijnvg
Copy link
Copy Markdown
Member

Backport #78745 to 7.x branch.

Overloaded the Metadata.Builder.build() method by adding a parameter that controls when to build indices lookup.
By default the indices lookup is always build.

When cluster state updates are batched in ilm, then built the indices lookup lazily. Because during batching only the final cluster state is used, then for the many intermediate cluster states we avoids building the indices lookup, which in a cluster with many indices can improve the performance of publishing cluster states significantly.

Relates to #77466

Backport elastic#78745 to 7.x branch.

Overloaded the Metadata.Builder.build() method by adding a parameter that controls when to build indices lookup.
By default the indices lookup is always build.

When cluster state updates are batched in ilm, then built the indices lookup lazily. Because during batching only the final cluster state is used, then for the many intermediate cluster states we avoids building the indices lookup, which in a cluster with many indices can improve the performance of publishing cluster states significantly.

Relates to elastic#77466
@martijnvg martijnvg added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 7, 2021
@elasticsearchmachine elasticsearchmachine merged commit ad2288f into elastic:7.x Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants