Shalin Shekhar Mangar created SOLR-10358:
--------------------------------------------

             Summary: Implement suspend-trigger and resume-trigger APIs
                 Key: SOLR-10358
                 URL: https://issues.apache.org/jira/browse/SOLR-10358
             Project: Solr
          Issue Type: Sub-task
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrCloud
            Reporter: Shalin Shekhar Mangar
            Assignee: Shalin Shekhar Mangar
             Fix For: master (7.0)


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.

h3. Examples:
Suspend the 'node_lost_trigger' until an explicit resume_trigger API is called:
{code}
curl -H 'Content-type:application/json' -d '{
        "suspend-trigger" : {
                "name" : "node_lost_trigger"
        }
}' http://localhost:8983/solr/admin/autoscaling
{code}

Suspend all triggers until resumed by an explicit resume_trigger API call:
{code}
curl -H 'Content-type:application/json' -d '{
        "suspend-trigger" : {
                "name" : "#EACH"
        }
}' http://localhost:8983/solr/admin/autoscaling
{code}

Suspend all triggers for 1 hour:
{code}
curl -H 'Content-type:application/json' -d '{
        "suspend-trigger" : {
                "name" : "#EACH"
                "timeout" : "1h"
        }
}' http://localhost:8983/solr/admin/autoscaling
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to