migrationsv2: Dynamically adjust batch size to prevent exceeding ES HTTP payload size #108708
Labels
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
As described in #107288 migrations can fail when they create batches of saved objects that are larger than the configured ES
http.max_content_length
(default 100Mb).Since saved objects vary greatly in size from a few kb to several megabytes it's very difficult to choose an appropriate batch size for a given deployment. Documents like
siem-detection-engine-rule-status
store debug logs which come from external systems introducing variability even within the same type.To ensure a smooth upgrade experience without reducing the default batch size, we should dynamically adjust the size of each indexed batch to ensure that the default payload size is never exceeded.
The text was updated successfully, but these errors were encountered: