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

Add index.priority setting to indices created by Kibana #68913

Closed
joshdover opened this issue Jun 11, 2020 · 4 comments · Fixed by #89297
Closed

Add index.priority setting to indices created by Kibana #68913

joshdover opened this issue Jun 11, 2020 · 4 comments · Fixed by #89297
Assignees
Labels
Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@joshdover
Copy link
Contributor

If Elasticsearch has shard allocation failures (eg. unallocated shards due to a node leaving the cluster), Kibana's core indices should be prioritized over other indices in recovering.

According to the index recovery prioritization docs, indices are recovered by this priority ranking:

  • the optional index.priority setting (higher before lower)
  • the index creation date (higher before lower)
  • the index name (higher before lower)

Newer indices created since Kibana's last upgrade (which may have triggered migrations and creating a new index) will be recovered before Kibana's indices.

By setting the index.priority setting we can ensure that Kibana's indices recover before other, more recently created data indices.

I think we should probably do this for all indices created by Kibana, but the primary SavedObject index (.kibana_n) should have the highest priority.

CC'ing teams with indices this may affect:

  • @elastic/kibana-alerting-services (task manager, event log)
  • @elastic/kibana-reporting-services (reporting index)
  • @elastic/siem (value list & exception list indices)
@joshdover joshdover added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Saved Objects labels Jun 11, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@mikecote
Copy link
Contributor

@joshdover is the scope of work of this issue to include task manager and event log or should I create another issue for the alerting team to work on those?

@joshdover
Copy link
Contributor Author

TBD, but I suspect doing this for task manager (or any SO-managed index) would be trivial or automatic if we do this for the main SO index.

For other indices, let's see if there's a real need. This is sort of a nice-to-have that keeps Kibana responsive enough to make it useful for diagnosing the issues with the ES cluster. I don't think the auxiliary indices should have the same priority as the primary .kibana index, and maybe we only need this on SO indices.

@rudolf
Copy link
Contributor

rudolf commented Jan 14, 2021

Will be done as part of #75780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants