I was wondering if given a case where i set
Primary Shard : 1
Replica Shard : 1
with this setup
What if my primary shad is in node 4 while my replica shad is in node 5 and when rack 1 goes down, I would result in data loss.
How can I ensure that the primary shard and replica shard would not be in the same rack?