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

[BUG] cluster.max_shards_per_node should have an upper limit #13907

Closed
kkewwei opened this issue May 31, 2024 · 1 comment · Fixed by #14155
Closed

[BUG] cluster.max_shards_per_node should have an upper limit #13907

kkewwei opened this issue May 31, 2024 · 1 comment · Fixed by #14155
Labels
bug Something isn't working Cluster Manager

Comments

@kkewwei
Copy link
Contributor

kkewwei commented May 31, 2024

Describe the bug

In our product, at first, user set cluster.max_shards_per_node to 500_000_000 to avoid shard unassigned. after days later, the nodes of the cluster are extended from 10 to 15. and the new created shard can't be unassigned because of the error:

"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [30101]/[-1089934592] maximum shards open;"

The cluster have 15 node, when calculating maxShardsInCluster, an int overflow occurred.
image

If the user don't extend the cluster from 10 to 15, an int overflow will not occur.
image

If we should limit the upper of cluster.max_shards_per_node, such as 5000_000, it can't be reached in the current es struct. I'm pleasure to fix it.

Related component

Cluster Manager

Additional Details

Host/Environment (please complete the following information):

  • OS2.9
@kkewwei kkewwei added bug Something isn't working untriaged labels May 31, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2 3 4 5 6 7]
@kkewwei Thank for creating this issue, could you create a pull request to address?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants