Hi, we have a 3-node ES cluster. Each node provides both master-eligible & data role. Is it possible to restore an index there temporarily without spreading its contents across all nodes? Just the current node or the current master node will do.
Thanks! Can these settings be set per-index as part of restoring the index? It's a chicken and egg problem otherwise: the index doesn't exist yet and its settings can't be changed.
If you are using snapshot and restore API you should be able to override / add index settings
index_settings
(Optional, object) Index settings to add or change in restored indices, including backing indices. You can’t use this option to change index.number_of_shards.
For data streams, this option only applies to restored backing indices. New backing indices are configured using the data stream’s matching index template.
The index status remains yellow, but that's ok, it's only needed to delete old data from it (via _delete_by_query API), snapshot it back and remove the temp index.
Too bad ES doesn't provide filtering & deletion right when taking the snapshot )
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.