-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Node-level cluster.max_shards_per_node
has no effect
#42137
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
Comments
Pinging @elastic/es-core-features |
Duplicates #40803 |
So #40803 was closed because original report was about some non-default distro or some such. But THIS ticket is about stock package you get from elastic theselves. So should we reopen this ticket instead? Open another one? @jasontedor any advice? I jsut hit this problem on this package from the official repo:
|
@verygreen I think you're mistaken: #40803 is still open, and while it remains unresolved the workaround mentioned there should still work for you. |
Hm, I guess I was confused by the (currently) last comment that says closed, but that is a different ticket. Coupled with the previous one pointing at unsupported distro. Oh well, sorry about the false alarm then. |
We only look at the value of
cluster.max_shards_per_node
taken from the cluster metadata which, if unset, defaults to 1000:elasticsearch/server/src/main/java/org/elasticsearch/indices/IndicesService.java
Line 1477 in d8417dc
This means that setting
cluster.max_shards_per_node
inelasticsearch.yml
has no effect, but most other dynamic settings can also be set statically like this, so this caught me by surprise.Relates #34021
Relates https://discuss.elastic.co/t/180785
The text was updated successfully, but these errors were encountered: