From what I have read, it's best to setup indices base on time and let time determine which node to move the shards.
For example:
All shards within 1 month stay in hot and older than 1 month move the cold.
Question:
I want to have the following:
- hot nodes to hold only primary shards within 1 month. All replica shards within 1 month go to warm nodes.
- All shards longer than 1 month (primary & replicas) go to warm.
Does this work in the ILM model? I don't wish to create complicated routing rules since it'll be very hard to maintain. I just want to know if splitting primary & replicas is part of ILM design.
The reason I want this is to have all writes to go to hot nodes that are specialized in write. And all the reads go to warm nodes (including active indices within 1 month).
Basically, splitting nodes into groups of write & read within 1 cluster. Would this be possible?
*An implicit question is can I force read to only go to replicas?
Thanks in advance.