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

Performance: Look into moving ManagedIndexMetaData from cluster state into index #41

Closed
adityaj1107 opened this issue Jun 3, 2021 · 1 comment
Labels
maintenance improves code quality, but not the product

Comments

@adityaj1107
Copy link
Contributor

Issue by dbbaughe
Friday Apr 24, 2020 at 16:15 GMT
Originally opened as opendistro-for-elasticsearch/index-management#207


Every Managed Index job has its own lifecycle which includes updating the cluster state for executions.
Because the cluster state is applied sequentially in a single thread and needs acknowledgement from other nodes for each update once you start managing thousands of indices it becomes a bottleneck.

We have some workarounds to help with this (making steps idempotent, only updating cluster state if actual work will be done, increasing cluster state update timeout), but these are mostly just bandaids on the issue and while they might keep us afloat for a while, we're probably not going to hit the scale we want (10k+ managed indices on a cluster).

We should consider moving the ManagedIndexMetaData out of the cluster state and into the config index itself. This is non trivial mainly because of the automatic migration that needs to happen once someone uses an updated plugin from the old one. We'll need to do some extensive testing around this along with performance testing to see the impact.

@adityaj1107 adityaj1107 added the maintenance improves code quality, but not the product label Jun 3, 2021
@dbbaughe
Copy link
Contributor

This was completed by opendistro-for-elasticsearch/index-management#280

thalurur pushed a commit to thalurur/open-index-management that referenced this issue Oct 22, 2021
Signed-off-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance improves code quality, but not the product
Projects
None yet
Development

No branches or pull requests

2 participants