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

Disallow setting both balance.index and balance.shard factors to 0 #15914

Open
hlcianfagna opened this issue Apr 24, 2024 · 0 comments
Open

Disallow setting both balance.index and balance.shard factors to 0 #15914

hlcianfagna opened this issue Apr 24, 2024 · 0 comments

Comments

@hlcianfagna
Copy link
Contributor

Problem Statement

Performing the following configuration is allowed:

set global persistent "cluster.routing.allocation.balance.index" = '0.00f';
set global persistent "cluster.routing.allocation.balance.shard" = '0.00f';

However after restarting the nodes the cluster will no longer start and the following entries will appear in the logs:
failed to apply updated cluster state
Balance factors must sum to a value > 0 but was: 0.0

Possible Solutions

  • Reject changing one of these settings to zero if the other one is already zero

Considered Alternatives

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant