-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Allow one search shard to fall back to undesired allocation #113847
Allow one search shard to fall back to undesired allocation #113847
Conversation
Pinging @elastic/es-distributed (Team:Distributed) |
I think the approach is correct 👍 |
...in/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java
Outdated
Show resolved
Hide resolved
It's in the linked test PR. To me it seemed we'd need |
…113847) We allow a primary shard to be assigned to a node even if it is not its desired location, but not for replicas. With this change we allow at most one search shard to also fall back to allocation to an undesired nodes if necessary. This ensures that at least one search replica will be available even if the desired node cannot allocate it. Relates ES-9617
We allow a primary shard to be assigned to a node even if it is not its desired location, but not for replicas. With this change we allow at most one search shard to also fall back to allocation to an undesired nodes if necessary. This ensures that at least one search replica will be available even if the desired node cannot allocate it.
Relates ES-9617