Hi,

I read the documentation about this feature over 
here<https://cwiki.apache.org/confluence/display/solr/Rule-based+Replica+Placement>.
  I did not get a very clear understanding of how this feature works and how I 
can configure it in Solr.

This is what I would like to achieve and am wondering if anyone has tried this 
feature and what their experience has been with it.


If I would like to configure a rule to make sure that for every shard at-least 
one replica is assigned to each rack before more than one replicas are assigned 
to the same rack, how would that rule look like?

For e.g

If I have a collection with 2 shards and replication-factor: 2 and I have 3 
racks say rack1, rack2, rack3, I want to make sure that at-least one replica is 
assigned to each rack.
So the replicas in this case should be assigned as shard1_replica1: rack1, 
shard1_replica2:rack2, shard2_replica1:rack3 and shard2_replica2:<one of the 3 
racks>
It should not assign the replicas as shard1_replica1:rack1, 
shard1_replica2:rack1, shard2_replica1: rack2, shard2_replica2: rack2. In this 
case all the replicas of a shard are assigned to the same rack.

This is not ideal and not good for HA reasons.


Regards

Suresh

Reply via email to