Perform force merge only on primary shard of the index #8021
Labels
distributed framework
enhancement
Enhancement or improvement to existing feature or request
Indexing
Indexing, Bulk Indexing and anything related to indexing
Is your feature request related to a problem? Please describe.
Currently, force merge works on both primary and replica shards by default. It doesn't provide option to merge primary shard only. For some cases, it will be beneficial if users don't want the replica shards to be merged to avoid resource utilization on replica nodes and only limit it to primary shards. For example: With support of searchable snapshot for better search performance user would want to merge the segments to 1 or fewer number before taking snapshot of the index. Using ISM users can
trigger force merge on primary shard only and then take snapshot to use it later using searchable snapshot mechanism to have better query performance.
Describe the solution you'd like
Force merge request to provide option to merge primary only shard.
Describe alternatives you've considered
Additional context
N/A
The text was updated successfully, but these errors were encountered: