Default number of shards clusterwide

I am googling almost 5 hrs and cant find information about how to change default number of shards (which is 5) clusterwide
I know how to set number of shards during index creation or using template or set the number for templates but I need set default number for whole cluster
in old versions I was able control default number of shards and replicas from yml config file but now I cant
and I cant find any information about that
could you help

You can create an index template which applies to all indices.

1 Like

thank you for reply
so it's impossible to change the default number which is 5 :expressionless:

It is. With an index template.

1 Like

2.x can configure in elasticsearch.yml file
5.x as i know only create with the index template.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.