mirror of https://github.com/apache/lucene.git
SOLR-14578: Update solrcloud-autoscaling-triggers.adoc and test (#1591)
* Update solrcloud-autoscaling-triggers.adoc * fix the name of the execute_plan action in docs and test.
This commit is contained in:
parent
11538e52a2
commit
31de01f0ae
|
@ -76,7 +76,7 @@ public class AutoAddReplicasIntegrationTest extends SolrCloudTestCase {
|
|||
|
||||
new V2Request.Builder("/cluster/autoscaling")
|
||||
.withMethod(SolrRequest.METHOD.POST)
|
||||
.withPayload("{'set-trigger':{'name':'.auto_add_replicas','event':'nodeLost','waitFor':'5s','enabled':'true','actions':[{'name':'auto_add_replicas_plan','class':'solr.AutoAddReplicasPlanAction'},{'name':'auto_add_replicas_plan','class':'solr.ExecutePlanAction'}]}}")
|
||||
.withPayload("{'set-trigger':{'name':'.auto_add_replicas','event':'nodeLost','waitFor':'5s','enabled':'true','actions':[{'name':'auto_add_replicas_plan','class':'solr.AutoAddReplicasPlanAction'},{'name':'execute_plan','class':'solr.ExecutePlanAction'}]}}")
|
||||
.build()
|
||||
.process(cluster.getSolrClient());
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ If you would like to change the value of `.autoAddReplicas` trigger, you need to
|
|||
"class": "solr.AutoAddReplicasPlanAction"
|
||||
},
|
||||
{
|
||||
"name": "auto_add_replicas_plan",
|
||||
"name": "execute_plan",
|
||||
"class": "solr.ExecutePlanAction"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue