Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
There are times when the user wants to pause execution of the autoscaling policies because he/she is performing some maintenance tasks. A cluster wide command can be used to suspend the triggers indefinitely or for a specific amount of time.
Examples:
Suspend the 'node_lost_trigger' until an explicit resume_trigger API is called:
curl -H 'Content-type:application/json' -d '{ "suspend-trigger" : { "name" : "node_lost_trigger" } }' http://localhost:8983/solr/admin/autoscaling
Suspend all triggers until resumed by an explicit resume_trigger API call:
curl -H 'Content-type:application/json' -d '{ "suspend-trigger" : { "name" : "#EACH" } }' http://localhost:8983/solr/admin/autoscaling
Suspend all triggers for 1 hour:
curl -H 'Content-type:application/json' -d '{ "suspend-trigger" : { "name" : "#EACH" "timeout" : "1h" } }' http://localhost:8983/solr/admin/autoscaling