Default number of shards clusterwide


(Shota) #1

hello
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
thnx


(David Pilato) #2

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


(Shota) #3

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


(David Pilato) #4

It is. With an index template.


(andy_zhou) #5

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


(system) #6

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