We are trying to eliminate replicas in our non-prod environment to save space and we do not need the replicas. we know this is counter to the fault tolerance but it is something we must do. I found this on the documentation but not sure where to invoke it because I am not an API guy _
is this run the Kibana dev tools? also we need to use -
preserve_existing
(Optional, Boolean) If true, existing index settings remain unchanged. Defaults to false.
to preserve what is there - what does the entire command actually look like or is there a FILE where I can change the setting and restart services to accomplish this.
Can you find out what the syntax is for the option since you are there at elastic. From what I understand the option is to KEEP the setting for the shards that already exist and any new shards would be created without replicas. Our Security team will also want to know the risk of having no replicas. what is the average fault rate for shards itself. We keep all data on an NFS partition so shards are all kept in the same place.
My recommendation, here, would be to use a template, rather than using preserve_existing since it gets you more in line with what you're after, if you want new indices to not have replicas.
Alternatively, you can alter the number of replicas by using ILM and tiering with hot/warm/cold etc.
While the shards themselves may not fail, though they can and do at times, you are more likely to lose a node and incur data loss, so it is not recommended, and I do hope you have snapshots in place and configured.
Also, NFS tends to be a poor choice due to the overhead from attribute hits, though it can be alleviated, to a degree, with some mount time settings, I would still steer away from it if you can.
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.