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

cluster.max_shards_per_node derives shard count from default not template settings #44567

Closed
mark54g opened this issue Jul 18, 2019 · 1 comment · Fixed by #44619
Closed

cluster.max_shards_per_node derives shard count from default not template settings #44567

mark54g opened this issue Jul 18, 2019 · 1 comment · Fixed by #44619
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates

Comments

@mark54g
Copy link
Contributor

mark54g commented Jul 18, 2019

Elasticsearch version (bin/elasticsearch --version):
Tested in version 6.x. May hit other versions

Plugins installed: []
N/A

JVM version (java -version):
N/A

OS version (uname -a if on a Unix-like system):
N/A

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Have too many shards, and create index or reindex.

You will receive a warning that this will add [10] shards, irrespective of the number that would be created due to the template for that index setting those shards to a different number.

cluster.max_shards_per_node checks the default number of shards to be created, not the template settings for the index.

Provide logs (if relevant):

@dnhatn dnhatn added the :Data Management/Indices APIs APIs to create and manage indices and templates label Jul 18, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates
Projects
None yet
3 participants