Use a scripted reindex for re-writing document _id
s for shared saved object types
#107740
Closed
1 of 6 tasks
Labels
Feature:Migrations
Feature:Saved Objects
performance
project:ResilientSavedObjectMigrations
Reduce Kibana upgrade failures by making saved object migrations more resilient
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
In #86247, we decided to go with a client-side reindex to support the shared saved object type migration which requires re-writing document
_id
s.If we decide to stop handling unknown saved object types (see #107678), we may be able to change this to be a scripted reindex in Elasticsearch instead to increase performance of this migration. This would help users upgrade large Kibana installations to 8.0+ by reducing the amount of downtime. It'd also help with decreasing the complexity of the v2 migration algo.
Long-term this is likely an improvement we are going to need. There have been several cases now where plugins have written 100k+ or even 1M+ documents into the
.kibana
index (eg. #106308, #95321). Ideally, the v2 algo could handle such cases without manual intervention while we make sure to prevent the situation from happening in the first place. We should be able to implement later in the 8.x release to benefit customers who upgrade to the next major version later in the release lifecycle.Open questions:
Blockers:
cc @jportner
The text was updated successfully, but these errors were encountered: