[
https://issues.apache.org/jira/browse/SOLR-10358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar updated SOLR-10358:
-----------------------------------------
Attachment: SOLR-10358.patch
Patch which adds suspend-trigger and resume-trigger APIs with tests. I'll
commit this to features/autoscaling branch.
> 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
> Labels: autoscaling
> Fix For: master (7.0)
>
> Attachments: SOLR-10358.patch
>
>
> 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]