How to set no of replicas to 0

I have setup aws elasticsearch where a new index is created everyday, when i see the index using _cat api i see two different size of index that are store.size(7.8) pri.store.size(3.8), I think this is happening because no of replicas is set to 1 in index setting. How can i set it to 0 permanently for all the indices ?
someone please help.

just a word if warning: this means, you are increasing the risk of dataloss, as there . is no copy of your data available within your cluster anymore.

You could create an index template that sets the number of replicas, which automatically applies for the indices that match the pattern.

you can also change the number of replicas for existing indices, see https://www.elastic.co/guide/en/elasticsearch/reference/7.3/indices-update-settings.html

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