[ 
https://issues.apache.org/jira/browse/SOLR-12219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436596#comment-16436596
 ] 

Varun Thacker commented on SOLR-12219:
--------------------------------------

You would need to explicitly create a trigger using an API .  A user would 
explicitly configure this . 

Not sure if the syntax is correct but one would setup something like this with 
autoscaling:
{code:java}
"set-trigger": {
  "name" : "leaderless_shard_trigger",
  "event" : "leaderLost",
  "waitFor" : "300s",
  "enabled" : true,
  "actions" : [
   {
    "name" : "compute_plan",
    "class": "solr.ComputePlanAction"
   },
   {
    "name" : "execute_plan",
    "class": "solr.ExecutePlanAction"
   }
  ]
 }
}{code}

> Autoscaling trigger to forceleader
> ----------------------------------
>
>                 Key: SOLR-12219
>                 URL: https://issues.apache.org/jira/browse/SOLR-12219
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: AutoScaling
>            Reporter: Varun Thacker
>            Priority: Major
>
> In a scenario where a shard doesn't have a leader for an extended period of 
> time, it would be nice if we can configure a trigger to fire a FORCELEADER 
> API call
>  
> FORCELEADER is the first step an ops person would fire today to come out of 
> the leaderless shard scenario and if this could be automated then it would be 
> useful for teams
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to