Hi, So I’ve been trying out the new autoscaling features in solr 7.2.1. I run the following commands when creating my solr cluster:
Set up overseer role: curl -s "solr-service-core:8983/solr/admin/collections?action=ADDROLE&role=overseer&node=$thenode" Create cluster prefs: clusterprefs=$(cat <<-EOF { "set-cluster-preferences" : [ {"minimize":"sysLoadAvg"}, {"minimize":"cores"} ] } EOF ) echo "The cluster prefs request body is: $clusterprefs" curl -H "Content-Type: application/json" -X POST -d "$clusterprefs" solr-service-core:8983/api/cluster/autoscaling Cluster policy: clusterpolicy=$(cat <<-EOF { "set-cluster-policy": [ {"replica": 0, "nodeRole": "overseer"}, {"replica": "<2", "shard": "#EACH", "node": "#ANY"}, {"cores": ">0", "node": "#ANY"}, {"cores": "<5", "node": "#ANY"}, {"replica": 0, "sysLoadAvg": ">80"} ] } EOF ) echo "The cluster policy is $clusterpolicy" curl -H "Content-Type: application/json" -X POST -d "$clusterpolicy" solr-service-core:8983/api/cluster/autoscaling nodeaddtrigger=$(cat <<-EOF { "set-trigger": { "name" : "node_added_trigger", "event" : "nodeAdded", "waitFor" : "1s" } } EOF ) echo "The node added trigger request: $nodeaddtrigger" curl -H "Content-Type: application/json" -X POST -d "$nodeaddtrigger" solr-service-core:8983/api/cluster/autoscaling I then create a collection with 2 shards and 3 replicas, under a set of nodes in an autoscaling group (initially 4, scales up to 10): curl -s "solr-service-core:8983/solr/admin/collections?action=CREATE&name=${COLLECTION_NAME}&numShards=${NUM_SHARDS}&replicationFactor=${NUM_REPLICAS}&autoAddReplicas=${AUTO_ADD_REPLICAS}&collection.configName=${COLLECTION_NAME}&waitForFinalState=true" I’ve observed several autoscaling actions being performed – automatically re-adding replicas, and moving shards to nodes based on my cluster policy/prefs. However, I have not observed a SPLITSHARD operation. My question is: 1) should I expect the Overseer to be able to call the SPLITSHARD command, or is this feature not yet implemented? 2) If it is possible, do you have any recommendations as to how I might force this type of behavior to happen? 3) If it’s not implemented yet, when could I expect the feature to be available? If you need any more details, please let me know! Really excited about these new features. Thanks, Matthew The content of this email is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.