How can shards distributed evenly among nodes

2020-02-04 Thread Yuan Zhao
Hi Team, We are using autoscaling policy, we make use of the utilize node feature to move replica to new nod. But we found after replica are moved, solr can make sure the repilica belongs to a same shard located on different nodes, but it can not make sure shard distributed evenly on all the

Re: utilizenode doesn't work after cluster policy set

2019-11-04 Thread Yuan Zhao
Sorry for the interruption. The policy I use is wrong. It should be : "set-cluster-policy" : [{ "replica" : "<2", "shard" : "#EACH", "node" : "#ANY", }] }' It works pretty well now. On Mon, Nov 4, 2019 at 10:53 AM Y

utilizenode doesn't work after cluster policy set

2019-11-03 Thread Yuan Zhao
uot;, "class":"solr.ExecutePlanAction"}], "enabled":true}, "node_added_trigger":{ "preferredOperation":"ADDREPLICA", "event":"nodeAdded", "waitFor":5, "actions":[ { "name":"compute_plan", "class":"solr.ComputePlanAction"}, { "name":"execute_plan", "class":"solr.ExecutePlanAction"}], "enabled":true}}, "listeners":{ ".auto_add_replicas.system":{ "trigger":".auto_add_replicas", "afterAction":[], "stage":[ "STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION", "IGNORED"], "class":"org.apache.solr.cloud.autoscaling.SystemLogListener", "beforeAction":[]}, "node_added_trigger.system":{ "beforeAction":[], "afterAction":[], "trigger":"node_added_trigger", "stage":[ "STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION", "IGNORED"], "class":"org.apache.solr.cloud.autoscaling.SystemLogListener"}}, "properties":{}} ``` My solr version is 7.3. Do I use it in a wrong way? -- Thanks & regards, Yuan Zhao