Also if I know I have a node I want to take down - can I force all the primaries to migrate to other machines before hand to minimize any effect. This become more crucial when sometimes we have indices without replication (either because of size constraints or ingestion performance - the use case can tolerate failure/restarting.) Even though we can reindex if we need to - if we know we want to take a machine down - we would like to migrate all the primary/singular indices off that node to avoid needless downtime.
It should move the index, if there is another place to put it. If no other node is available due to disk space, all nodes already have a shard copy or other conflicting filtering rules, the shard will not be moved.
it would be really helpful to have some way to see how it's figuring out what to do with the allocations. There are several settings which can compete against each other which can sometimes result in strange allocations.
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.