Apache Lucene open-source search software
SOLR-11165: Ref guide documentation for Autoscaling APIs, triggers, listeners, actions for Solr 7.1
Shalin Shekhar Mangar15e2729d3243
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 35e1eafe01a..0b456320d9f 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -92,6 +92,9 @@ Other ChangesUpdates are delivered to the first in a list. It's now possible to refer to a comma delimited listof them in the path, ex: /solr/colA,colB/select?... (David Smiley)+* SOLR-11165: Ref guide documentation for Autoscaling APIs, triggers, listeners, actions for Solr 7.1+ (ab, Cassandra Targett, Noble Paul, shalin)+================== 7.1.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-actions.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-actions.adocdeleted file mode 100644index 676527fa180..00000000000--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-actions.adoc+++ /dev/null@@ -1,28 +0,0 @@-= SolrCloud Autoscaling Actions-:page-shortname: solrcloud-autoscaling-actions-:page-permalink: solrcloud-autoscaling-actions.html-// Licensed to the Apache Software Foundation (ASF) under one-// or more contributor license agreements. See the NOTICE file-// distributed with this work for additional information-// regarding copyright ownership. The ASF licenses this file-// to you under the Apache License, Version 2.0 (the-// "License"); you may not use this file except in compliance-// with the License. You may obtain a copy of the License at-//-// http://www.apache.org/licenses/LICENSE-2.0-//-// Unless required by applicable law or agreed to in writing,-// software distributed under the License is distributed on an-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY-// KIND, either express or implied. See the License for the-// specific language governing permissions and limitations-// under the License.--`TriggerAction` implementations process events generated by triggers in order to ensure the cluster's-health and good use of resources.--Currently two implementations are provided: `ComputePlanAction` and `ExecutePlanAction`.--== Compute plan action--== Execute plan actiondiff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adocindex 43fdfd73fe0..99f53408b73 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc@@ -24,7 +24,7 @@ The Autoscaling API is used to manage autoscaling policies, preferences, trigger== Read API-The autoscaling Read API is available at `/admin/autoscaling` or `/v2/cluster/autoscaling`. It returns information about the configured cluster preferences, cluster policy, collection-specific policies triggers and listeners.+The autoscaling Read API is available at `/admin/autoscaling` or `/solr/cluster/autoscaling`. It returns information about the configured cluster preferences, cluster policy, collection-specific policies triggers and listeners.This API does not take any parameters.@@ -144,9 +144,98 @@ However, since the first node in the first example had more than 1 replica for aIn the above example the node with port 8983 has two replicas for `shard1` in violation of our policy.+== History API+History of autoscaling events is available at `/admin/autoscaling/history`. It returns information+about past autoscaling events and details about their processing. This history is kept in+the `.system` collection, and populated by a trigger listener `SystemLogListener` - by default this+listener is added to all new triggers.++History events are regular Solr documents so they can be also accessed directly by+searching on the `.system` collection. History handler acts as a regular search handler, so all+query parameters supported by `/select` handler for that collection are supported here too.+However, the history handler makes this+process easier by offering a simpler syntax and knowledge of field names+used by `SystemLogListener` for serialization of event data.++History documents contain also the action context, if it was available, which gives+further insight into e.g. exact operations that were computed and/or executed.++Specifically, the following query parameters can be used (they are turned into+filter queries, so an implicit AND is applied):++* `trigger` - trigger name+* `eventType` - event type / trigger type (eg. `nodeAdded`)+* `collection` - collection name involved in event processing+* `stage` - event processing stage+* `action` - trigger action+* `node` - node name that the event refers to+* `beforeAction` - beforeAction stage+* `afterAction` - afterAction stage++.Example output+[source,json]+----+{+ "responseHeader": {+ "status": 0,+ "QTime": 64+ },+ "response": {+ "numFound": 2,+ "start": 0,+ "docs": [+ {+ "type": "autoscaling_event",+ "source_s": "SystemLogListener",+ "id": "15f53efdf4bT2qlmj80580yuu997vktddfob3",+ "event.id_s": "14f0d67fe7b97d80T2qlmj80580yuu997vktddfob2",+ "event.type_s": "NODELOST",+ "event.source_s": ".auto_add_replicas",+ "event.time_l": 1508941720006000000,+ "timestamp": "2017-10-25T14:29:10.091Z",+ "event.property.eventTimes_ss": [+ "1508941720006000000"+ ],+ "event.property._enqueue_time__ss": [+ "1508941750088000000"+ ],+ "event.property.nodeNames_ss": [+ "192.168.1.104:7574_solr"+ ],+ "stage_s": "STARTED",+ "event_str": "{\n \"id\":\"14f0d67fe7b97d80T2qlmj80580yuu997vktddfob2\",\n \"source\":\".auto_add_replicas\",\n \"eventTime\":1508941720006000000,\n \"eventType\":\"NODELOST\",\n \"properties\":{\n \"eventTimes\":[1508941720006000000],\n \"_enqueue_time_\":1508941750088000000,\n \"nodeNames\":[\"192.168.1.104:7574_solr\"]}}",+ "_version_": 1582240104552857600+ },+ {+ "type": "autoscaling_event",+ "source_s": "SystemLogListener",+ "id": "15f53eff316T2qlmj80580yuu997vktddfob6",+ "event.id_s": "14f0d67fe7b97d80T2qlmj80580yuu997vktddfob2",+ "event.type_s": "NODELOST",+ "event.source_s": ".auto_add_replicas",+ "event.time_l": 1508941720006000000,+ "timestamp": "2017-10-25T14:29:15.158Z",+ "event.property.eventTimes_ss": [+ "1508941720006000000"+ ],+ "event.property._enqueue_time__ss": [+ "1508941750088000000"+ ],+ "event.property.nodeNames_ss": [+ "192.168.1.104:7574_solr"+ ],+ "stage_s": "SUCCEEDED",+ "event_str": "{\n \"id\":\"14f0d67fe7b97d80T2qlmj80580yuu997vktddfob2\",\n \"source\":\".auto_add_replicas\",\n \"eventTime\":1508941720006000000,\n \"eventType\":\"NODELOST\",\n \"properties\":{\n \"eventTimes\":[1508941720006000000],\n \"_enqueue_time_\":1508941750088000000,\n \"nodeNames\":[\"192.168.1.104:7574_solr\"]}}",+ "_version_": 1582240109859700736+ }+ ]+ }+}+----+== Write API-The Write API is available at the same `/admin/autoscaling` and `/v2/cluster/autoscaling` endpoints as the read API but can only be used with the *POST* HTTP verb.+The Write API is available at the same `/admin/autoscaling` and `/api/cluster/autoscaling` endpoints as the read API but can only be used with the *POST* HTTP verb.The payload of the POST request is a JSON message with commands to set and remove components. Multiple commands can be specified together in the payload. The commands are executed in the order specified and the changes are atomic, i.e., either all succeed or none.@@ -325,30 +414,91 @@ The `remove-policy` command accepts a policy name to be removed from Solr. The pIf you attempt to remove a policy that is being used by a collection, this command will fail to delete the policy until the collection itself is deleted.-== History API-History of autoscaling events is available at `/admin/autoscaling/history`. It returs information-about past autoscaling events and details about their processing. This history is kept in-the `.system` collection, and populated by a trigger listener `SystemLogListener` - by default this-listener is added to all new triggers.+=== Create/Update Trigger-History events are regular Solr documents so they can be also accessed directly by-searching on the `.system` collection. History handler acts as a regular search handler, so all-query parameters supported by `/select` handler for that collection are supported here too.-However, the history handler makes this-process easier by offering a simpler syntax and knowledge of field names-used by `SystemLogListener` for serialization of event data.+The set-trigger command can be used to create a new trigger or overwrite an existing one.-History documents contain also the action context, if it was available, which gives-further insight into eg. exact operations that were computed and/or executed.+You can see the section <<solrcloud-autoscaling-triggers.adoc#trigger-configuration,Trigger Configuration>> for a full list of configuration options.-Specifically, the following query parameters can be used (they are turned into-filter queries, so an implicit AND is applied):+.Creating a nodeAdded Trigger+[source,json]+----+{+ "set-trigger": {+ "name" : "node_added_trigger",+ "event" : "nodeAdded",+ "waitFor" : "1s"+ }+}+-----* `trigger` - trigger name-* `eventType` - event type / trigger type (eg. `nodeAdded`)-* `collection` - collection name involved in event processing-* `stage` - event processing stage-* `action` - trigger action-* `node` - node name that the event refers to-* `beforeAction` - beforeAction stage-* `afterAction` - afterAction stage+.Updating Trigger with waitFor set to 5 seconds+[source,json]+----+{+ "set-trigger": {+ "name" : "node_added_trigger",+ "event" : "nodeAdded",+ "waitFor" : "5s",+ }+}+----++.Creating a nodeLost Trigger+[source,json]+----+{+ "set-trigger": {+ "name" : "node_lost_trigger1",+ "event" : "nodeLost",+ "waitFor" : "60s",+ }+}+----++=== Remove Trigger++The remove-trigger command can be used to remove a trigger. It accepts a single parameter: the name of the trigger.++.Removing the nodeLost Trigger+[source,json]+----+{+ "remove-trigger": {+ "name" : "node_lost_trigger1"+ }+}+----++=== Create/Update Trigger Listener++The set-listener command can be used to create or modify a listener for a trigger.++You can see the section <<solrcloud-autoscaling-listeners.adoc#listener-configuration,Trigger Listener Configuration>> for a full list of configuration options.++.Creating a listener for the nodeAdded Trigger+[source,json]+----+{+ "set-listener": {+ "name": "foo",+ "trigger": "node_added_trigger",+ "stage": ["STARTED", "ABORTED", "SUCCEEDED", "FAILED"],+ "class": "com.example.Listener"+ }+}+----++=== Remove Trigger Listener++The remove-listener command can be used to remove an existing listener. It accepts a single parameter: the name of the listener.++.Removing the foo listener+[source,json]+----+{+ "remove-listener": {+ "name": "foo"+ }+}+----diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-auto-add-replicas.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-auto-add-replicas.adocindex d2a027e61e4..d5c97167330 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-auto-add-replicas.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-auto-add-replicas.adoc@@ -1,4 +1,4 @@-= SolrCloud AutoScaling Automatically Adding Replicas+= SolrCloud Autoscaling Automatically Adding Replicas:page-shortname: solrcloud-autoscaling-auto-add-replicas:page-permalink: solrcloud-autoscaling-auto-add-replicas.html// Licensed to the Apache Software Foundation (ASF) under one@@ -18,4 +18,59 @@// specific language governing permissions and limitations// under the License.-TODO\ No newline at end of file+Solr provides a way to automatically add replicas for a collection when the number of active replicas drops below+the replication factor specified at the time of the creation of the collection.++== `autoAddReplicas` parameter++The boolean `autoAddReplicas` parameter can be passed to the Create Collection API to enable this feature for a given collection.++.Creating a collection with autoAddReplicas feature+`http://localhost:8983/solr/admin/collections?action=CREATE&name=my_collection&numShards=1&replicationFactor=5&autoAddReplicas=true`++The modify collection API can be used to enable/disable this feature for any collection.++.Modifying collection to disable autoAddReplicas feature+`http://localhost:8983/solr/admin/collections?action=MODIFYCOLLECTION&name=my_collection&autoAddReplicas=false`++== Implementation using `.autoAddReplicas` trigger++A Trigger named `.autoAddReplicas` is automatically created whenever any collection has the autoAddReplicas feature enabled.+Only one trigger is sufficient to server all collections having this feature enabled. The `.autoAddReplicas` trigger watches+for nodes that are lost from the cluster and uses the default TriggerActions to create new replicas to replace the ones+which were hosted by the lost node. If the old node comes back online, it unloads the moved replicas and is free to host other+replicas as and when required.++Since the trigger provides the autoAddReplicas feature for all collections, the suspend-trigger and resume-trigger APIs+can be used to disable and enable this feature for all collections in one API call.++.Suspending autoAddReplicas for all collections+[source,json]+----+{+ "suspend-trigger": {+ "name" : ".autoAddReplicas"+ }+}+----++.Resuming autoAddReplicas for all collections+[source,json]+----+{+ "resume-trigger": {+ "name" : ".autoAddReplicas"+ }+}+----++== Using cluster property to enable/disable autoAddReplicas++A cluster property, also named `autoAddReplicas`, can be set to `false` to disable this feature for all collections.+If this cluster property is missing or set to `true` the autoAddReplicas is enabled for all collections.++.Deprecation Warning+[WARNING]+====+Using cluster property to enable/disable autoAddReplicas is deprecated and only supported for back compatibility. Please use the suspend-trigger and resume-trigger APIs instead.+====\ No newline at end of filediff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-listeners.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-listeners.adocindex 28a7461bd97..282839af909 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-listeners.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-listeners.adoc@@ -1,4 +1,4 @@-= SolrCloud AutoScaling Listeners+= SolrCloud Autoscaling Listeners:page-shortname: solrcloud-autoscaling-listeners:page-permalink: solrcloud-autoscaling-listeners.html// Licensed to the Apache Software Foundation (ASF) under one@@ -67,11 +67,11 @@ For example:[source,json]----{- 'set-listener': {- 'name': 'foo',- 'trigger': 'node_lost_trigger',- 'stage': ['STARTED', 'ABORTED', 'SUCCEEDED', 'FAILED'],- 'class': 'solr.SystemLogListener'+ "set-listener": {+ "name": "foo",+ "trigger": "node_lost_trigger",+ "stage": ["STARTED", "ABORTED", "SUCCEEDED", "FAILED"],+ "class": "solr.SystemLogListener"}}----@@ -79,8 +79,8 @@ For example:[source,json]----{- 'remove-listener': {- 'name': 'foo'+ "remove-listener": {+ "name": "foo"}}----@@ -139,9 +139,9 @@ trigger named `foo`):[source,json]----{- 'name' : 'foo.system',- 'trigger' : 'solr.SystemLogListener',- 'stage' : ['WAITING', 'STARTED', 'ABORTED', 'SUCCEEDED', 'FAILED', 'BEFORE_ACTION', 'AFTER_ACTION']+ "name" : "foo.system",+ "trigger" : "solr.SystemLogListener",+ "stage" : ["WAITING", "STARTED", "ABORTED", "SUCCEEDED", "FAILED", "BEFORE_ACTION", "AFTER_ACTION"]}----@@ -177,17 +177,17 @@ Example configuration:[source,json]----{- 'name': 'foo',- 'trigger': 'node_added_trigger',- 'class': 'solr.HttpTriggerListener',- 'url': 'http://foo.com/${config.name:invalidName}/${config.properties.xyz:invalidXyz}/${event.eventType}',- 'xyz': 'foobar',- 'header.X-Trigger': '${config.trigger}',- 'payload': 'actionName=${actionName}, source=${event.source}, type=${event.eventType}',- 'contentType': 'text/plain',- 'stage': ['STARTED', 'ABORTED', SUCCEEDED', 'FAILED'],- 'beforeAction': ['compute_plan', 'execute_plan'],- 'afterAction': ['compute_plan', 'execute_plan']+ "name": "foo",+ "trigger": "node_added_trigger",+ "class": "solr.HttpTriggerListener",+ "url": "http://foo.com/${config.name:invalidName}/${config.properties.xyz:invalidXyz}/${event.eventType}",+ "xyz": "foobar",+ "header.X-Trigger": "${config.trigger}",+ "payload": "actionName=${actionName}, source=${event.source}, type=${event.eventType}",+ "contentType": "text/plain",+ "stage": ["STARTED", "ABORTED", SUCCEEDED", "FAILED"],+ "beforeAction": ["compute_plan", "execute_plan"],+ "afterAction": ["compute_plan", "execute_plan"]}----This configuration specifies that each time one of the listed stages is reached, or before and after each of the listeddiff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-overview.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-overview.adocindex c14965ada78..b3f2763979b 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-overview.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-overview.adoc@@ -44,7 +44,7 @@ We have an easy way to enable this behavior without needing to understand the auA collection created with `autoAddReplicas=true` will be monitored by Solr such that if a node containing a replica of this collection goes down, Solr will add new replicas on other nodes after waiting for up to thirty seconds for the node to come back.-You can see the section __TODO_FIX_ME__ to learn more about how to enable or disable this feature as well as other details.+You can see the section <<solrcloud-autoscaling-auto-add-replicas.adoc#solrcloud-autoscaling-auto-add-replicas,SolrCloud AutoScaling Automatically Adding Replicas>> to learn more about how to enable or disable this feature as well as other details.The selection of the node that will host the new replica is made according to the default cluster preferences that we will learn more about in the next sections.@@ -83,9 +83,15 @@ You can learn more about collection-specific policies in the section <<solrclouNow that we have an idea about how cluster management operations use policy and preferences help Solr keep the cluster balanced and stable, we can talk about when to invoke such operations. Triggers are used to watch for events such as a node joining or leaving the cluster. When the event happens, the trigger executes a set of `actions` that compute and execute a *plan* i.e. a set of operations to change the cluster so that the policy and preferences are respected.-The `autoAddReplicas` parameter passed to the create collection API in the quickstart section automatically creates a trigger that watches for a node going away. When the trigger fires, it computes and executes a plan to move all replicas hosted by the lost node to new nodes in the cluster. The target nodes are chosen based on the policy and preferences.+The `autoAddReplicas` parameter passed to the create collection API in the quickstart section automatically creates a trigger that watches for a node going away. When the trigger fires, it executes a set of actions that compute and execute a plan to move all replicas hosted by the lost node to new nodes in the cluster. The target nodes are chosen based on the policy and preferences.-You can learn more about Triggers in the section <<solrcloud-autoscaling-triggers.adoc#solrcloud-autoscaling-triggers,AutoScaling Triggers>>.+You can learn more about Triggers in the section <<solrcloud-autoscaling-triggers.adoc#solrcloud-autoscaling-triggers,Autoscaling Triggers>>.++== Trigger Actions++A trigger executes *actions* that tell Solr what to do in response to the trigger. Solr ships with two actions that are added to every trigger by default. The first is called the *ComputePlanAction* and the other is *ExecutePlanAction*. The former computes the cluster management operations necessary to stabilize the cluster and the latter executes them on the cluster.++You can learn more about Trigger Actions in the section <<solrcloud-autoscaling-trigger-actions.adoc#solrcloud-autoscaling-trigger-actions,Autoscaling Trigger Actions>>.== Listenersdiff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-trigger-actions.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-trigger-actions.adocnew file mode 100644index 00000000000..89dfd17c949--- /dev/null+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-trigger-actions.adoc@@ -0,0 +1,46 @@+= SolrCloud Autoscaling Trigger Actions+:page-shortname: solrcloud-autoscaling-trigger-actions+:page-permalink: solrcloud-autoscaling-trigger-actions.html+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++`TriggerAction` implementations process events generated by triggers in order to ensure the cluster's+health and good use of resources.++Currently two implementations are provided: `ComputePlanAction` and `ExecutePlanAction`.++== Compute plan action++The `ComputePlanAction` uses the policy and preferences to calculate the optimal set of Collection API+commands which can re-balance the cluster in response to trigger events.++Currently, it has no configurable parameters.++== Execute plan action++The `ExecutePlanAction` executes the Collection API commands emitted by the `ComputePlanAction` against+the cluster using SolrJ. It executes the commands serially, waiting for each of them to succeed before+continuing with the next one.++Currently, it has no configurable parameters.++If any one of the command fails, then the complete chain of actions are+executed again at the next run of the trigger. If the Overseer node fails while ExecutePlanAction is running+then the new overseer node will run the chain of actions for the same event again after waiting for any+running Collection API operations belonging to the event to complete.++Please see <<solrcloud-autoscaling-fault-tolerance.adoc#solrcloud-autoscaling-fault-tolerance,SolrCloud AutoScaling Fault Tolerance>> for more details on fault tolerance within the Autoscaling framework.\ No newline at end of filediff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-triggers.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-triggers.adocindex 38945f1c6f7..08931660080 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-triggers.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-triggers.adoc@@ -1,4 +1,4 @@-= SolrCloud AutoScaling Triggers+= SolrCloud Autoscaling Triggers:page-shortname: solrcloud-autoscaling-triggers:page-permalink: solrcloud-autoscaling-triggers.html// Licensed to the Apache Software Foundation (ASF) under one@@ -17,6 +17,7 @@// KIND, either express or implied. See the License for the// specific language governing permissions and limitations// under the License.+Triggers are used by autoscaling API to watch for cluster events such as node joining or leaving,and in the future also for other cluster, node and replica events that are important from thepoint of view of cluster performance.@@ -55,6 +56,8 @@ is automatically created to watch for nodes going away. This trigger produces `nwhich are then processed by configured actions (usually resulting in computing and executing a planto add replicas on the live nodes to maintain the expected replication factor).+You can see the section <<solrcloud-autoscaling-auto-add-replicas.adoc#solrcloud-autoscaling-auto-add-replicas,SolrCloud AutoScaling Automatically Adding Replicas>> to learn more about how `.autoAddReplicas` work.+== Trigger configurationTrigger configurations are managed using autoscaling Write API with commands `set-trigger`, `remove-trigger`,`suspend-trigger`, `resume-trigger`.@@ -75,29 +78,32 @@ Action configuration consists of the following properties:* `class` - (string, required) action implementation class* additional implementation-specific properties may be provided+If the Action configuration is omitted, then by default, the ComputePlanAction and the ExecutePlanAction are automatically+added to the trigger configuration.+Example: adding / updating a trigger for `nodeAdded` events. This trigger configuration willcompute and execute a plan to allocate the resources available on the new node. A custom actionis also used to possibly modify the plan.[source,json]----{- 'set-trigger': {- 'name' : 'node_lost_trigger',- 'event' : 'nodeLost',- 'waitFor' : '1s',- 'enabled' : true,- 'actions' : [+ "set-trigger": {+ "name" : "node_added_trigger",+ "event" : "nodeAdded",+ "waitFor" : "1s",+ "enabled" : true,+ "actions" : [{- 'name' : 'compute_plan',- 'class': 'solr.ComputePlanAction'+ "name" : "compute_plan",+ "class": "solr.ComputePlanAction"},{- 'name' : 'custom_action',- 'class': 'com.example.CustomAction'+ "name" : "custom_action",+ "class": "com.example.CustomAction"},{- 'name' : 'execute_plan',- 'class': 'solr.ExecutePlanAction'+ "name" : "execute_plan",+ "class": "solr.ExecutePlanAction"}]}diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling.adocindex 3c0d2c567a5..5d53b6eff12 100644--- a/solr/solr-ref-guide/src/solrcloud-autoscaling.adoc+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling.adoc@@ -1,7 +1,7 @@= SolrCloud AutoScaling:page-shortname: solrcloud-autoscaling:page-permalink: solrcloud-autoscaling.html-:page-children: solrcloud-autoscaling-overview, solrcloud-autoscaling-api, solrcloud-autoscaling-policy-preferences, solrcloud-autoscaling-triggers, solrcloud-autoscaling-listeners, solrcloud-autoscaling-auto-add-replicas+:page-children: solrcloud-autoscaling-overview, solrcloud-autoscaling-api, solrcloud-autoscaling-policy-preferences, solrcloud-autoscaling-triggers, solrcloud-autoscaling-trigger-actions, solrcloud-autoscaling-listeners, solrcloud-autoscaling-auto-add-replicas, solrcloud-autoscaling-fault-tolerance// Licensed to the Apache Software Foundation (ASF) under one// or more contributor license agreements. See the NOTICE file// distributed with this work for additional information@@ -22,7 +22,7 @@[.lead]The goal of autoscaling is to make SolrCloud cluster management easier by providing a way for changes to the cluster to be more automatic and more intelligent.-Autoscaling includes an API to manage cluster-wide and collection-specific policies and preferences and a rules syntax to define the guidelines for your cluster. Future Solr releases will include features to utilize the policies and preferences so they perform actions automatically when the rules are violated.+Autoscaling includes an API to manage cluster-wide and collection-specific policies and preferences and a rules syntax to define the guidelines for your cluster. Also included are features to utilize the policies and preferences so they perform actions automatically when certain conditions are met.The following sections describe the autoscaling features of SolrCloud:@@ -30,5 +30,7 @@ The following sections describe the autoscaling features of SolrCloud:* <<solrcloud-autoscaling-api.adoc#solrcloud-autoscaling-api,SolrCloud Autoscaling API>>* <<solrcloud-autoscaling-policy-preferences.adoc#solrcloud-autoscaling-policy-preferences,SolrCloud Autoscaling Policy and Preferences>>* <<solrcloud-autoscaling-triggers.adoc#solrcloud-autoscaling-triggers,SolrCloud AutoScaling Triggers>>+* <<solrcloud-autoscaling-trigger-actions.adoc#solrcloud-autoscaling-trigger-actions,SolrCloud AutoScaling Trigger Actions>>* <<solrcloud-autoscaling-listeners.adoc#solrcloud-autoscaling-listeners,SolrCloud AutoScaling Listeners>>* <<solrcloud-autoscaling-auto-add-replicas.adoc#solrcloud-autoscaling-auto-add-replicas,SolrCloud AutoScaling - Automatically Adding Replicas>>+* <<solrcloud-autoscaling-fault-tolerance.adoc#solrcloud-autoscaling-fault-tolerance,SolrCloud AutoScaling Fault Tolerance>>