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

Perform force merge only on primary shard of the index #8021

Closed
sohami opened this issue Jun 12, 2023 · 1 comment
Closed

Perform force merge only on primary shard of the index #8021

sohami opened this issue Jun 12, 2023 · 1 comment
Labels
distributed framework enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@sohami
Copy link
Collaborator

sohami commented Jun 12, 2023

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

  1. Index settings to control for which indices primary shard should be merged

Additional context
N/A

@sohami sohami added enhancement Enhancement or improvement to existing feature or request untriaged labels Jun 12, 2023
@sohami sohami changed the title [Force Merge] Perform force merge only on primary shard of the index Perform force merge only on primary shard of the index Jun 12, 2023
@anasalkouz anasalkouz added Indexing Indexing, Bulk Indexing and anything related to indexing and removed untriaged labels Jun 20, 2023
@jed326
Copy link
Collaborator

jed326 commented May 22, 2024

Resolved by #11269

@jed326 jed326 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed framework enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

5 participants