[Segment Replication] Swap role of primary and replica shard #6481
Labels
discuss
Issues intended to help drive brainstorming and decision making
feedback needed
Issue or PR needs feedback
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
Coming from disucssion in #6210 which introduced primary shard based balancing, may need extra relocations (example 1) to attain complete balance and in some situations relocation is not at all possible (example 2). This can be fixed with minimal (single) operation by exchanging primary and replica shard roles. This needs to be done under primary shard permit and ensure this change is committed to cluster state. This is already tried for searchable snapshot, can be attempted for hot shards as well.
Problem 1 (More relocations)
Problem 2 (No relocation possible)
The text was updated successfully, but these errors were encountered: