I want to increase the shard count of my indices. Is that possible to do that?
I researched and found there is a possibilities to achieve the same using template, but as per my understanding we can do that only for newly create indices if we use template.
So I want something which can be used to change the shard count of existing indices without creating new indices.
You can use the Split index API which allows you to increase the number of primary shards in an existing index. But it requires you to set the index to read-only before the split operation and you can only increase the number of shards with certain factors.
I personally prefer to use the Reindex API as I can then specify the exact number of shards I want in the new index. Plus I don't have to set the old index to read-only while I perform the reindexing. Afterward I simply switch the alias and synch up the changes with a final reindex call before deleting the old index.
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.