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

Calculate and set total_shards_per_node per index #372

Open
otrosien opened this issue Nov 28, 2023 · 0 comments
Open

Calculate and set total_shards_per_node per index #372

otrosien opened this issue Nov 28, 2023 · 0 comments

Comments

@otrosien
Copy link
Member

otrosien commented Nov 28, 2023

Expected Behavior

When scaling out we want to achieve that the indexes allocated on an EDS should be spread out across the nodes as good as possible, which can be achieved by setting index.routing.allocation.total_shards_per_node to the total number of shards of an index divided by the number of nodes (rounded up). This ensures that we avoid CPU skew in case only one index has high load. And when scaling down we need to revert this setting again accordingly.

Actual Behavior

es-operator doesn't know about this property.

@otrosien otrosien changed the title Calculate total_shards_per_node per index in order to achieve best spread of load across the nodes Calculate and set total_shards_per_node per index Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant