Updating settings on a large number of indices can take minutes #87120
Labels
>bug
:Distributed Coordination/Cluster Coordination
Cluster formation and cluster state publication, including cluster membership and fault detection.
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Updating index settings on a large number of indices can take many minutes and the resulting cluster state update might fail to cleanly publish without warning because of the time it takes to persist to disk.
The disk part is obvious, we write one Lucene document per index, resulting in a massive write to Lucene.
The bigger part of why a large setting update is slow though is the index metadata validation that is run for each index. This validation deserialises + reserializes the mapping for every index that got updated, which for large mappings combined with a large number of updates indices can take many minutes.
We should find a way to skip unnecessary mapping validation when nothing about the mappings has changed.
relates #77466
The text was updated successfully, but these errors were encountered: