Hi all - I have a 4 node cluster for test, and created several solr
collections with 2 shards and 2 replicas each.
I'd like the global policy to be to not place more than one replica of
the same shard on the same node. I did this with this curl command:
curl -X POST -H 'Content-type:application/json' --data-binary
'{"set-cluster-policy":[{"replica": "<2", "shard": "#EACH", "node":
"#ANY"}]}' http://localhost:9100/solr/admin/autoscaling
Creating the collections works great - they are distributed across the
nodes nicely. When I turn a node off, however, (going from 4 nodes to
3), the same node was assigned to not only be both replicas of a shard,
but one node is now hosting all of the replicas of a collection ie:
collection----->shard1---->replica1,replica2
collection----->shard2----->replica1,replica2
all of those replicas above are hosted by the same node. What am I
doing wrong here? Thank you!
-Joe