I need to hard set the number of shards I would like each new index to have.
I tried to add the following directly underneath the 'number of replicas' line but it complains.
"number_of_shards" : "10"
Error message:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"failed to parse template source"}],"type":"illegal_argument_exception","reason":"failed to parse template source","caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('"' (code 34)): was expecting comma to separate OBJECT entries\n at [Source: [B@1bca689e; line: 8, column: 2]"}},"status":400}
Thanks Mark.
What happens if we have 10 ES Data Nodes and they are all of equal performance Servers.
If we leave the default ES will only create 5 shards per index so some nodes will have shards and others won't ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.