given that I have a cluster with for example 8 nodes
elastic1 -> elastic8
and I create an index with 8 shards, is there a way to enforce the following from the start:
shard 1 should be on elastic1,
shard 2 on elastic2,
shard 3 on elastic3
shard 8 on elastic8.
I know you can use the _reroute api afterwards based on how elastic routed the shards initially but I would like to have something where I can tell elasticsearch to do this from the start.
I need this because I have a plugin that keeps a state in memory for certain documents,
and I need to know for sure if a new index is made on what node a certain shard is on.(needs to be same for new indexes)