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

Varun Thacker commented on SOLR-6879:
-------------------------------------

Thanks Steve.

Couple of ref guide updates that we would need to make - 

1. 
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api11
Instead of "As of Solr 4.7, only the property urlScheme is supported."
we could have something like - "The two supported properties are - 'urlScheme' 
and 'autoAddReplicas' "

2. Under "AutoAddReplica Settings" on 
https://cwiki.apache.org/confluence/display/solr/Running+Solr+on+HDFS we could 
add the following section- 


"Temporarily disable autoAddReplicas for the entire cluster" - When doing 
offline maintenance on the cluster and for various other use cases where an 
admin would like to disable autoAddReplicas temporarily, one could use the 
following APIs to disable and enable autoAddReplicas cluster wide.

API to disable autoAddReplicas:

{code}
admin/collections?action=CLUSTERPROP&name=autoAddReplicas&val=false
{code}

API to enable autoAddReplicas:

{code}
admin/collections?action=CLUSTERPROP&name=autoAddReplicas
{code}

> Have an option to disable autoAddReplicas temporarily for all collections
> -------------------------------------------------------------------------
>
>                 Key: SOLR-6879
>                 URL: https://issues.apache.org/jira/browse/SOLR-6879
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Varun Thacker
>            Assignee: Steve Rowe
>             Fix For: 5.0, Trunk
>
>         Attachments: SOLR-6879.patch, SOLR-6879.patch
>
>
> When doing offline maintenance on my cluster I would like to disable 
> autoAddReplicas since I don't want replicas being created on nodes during 
> this time.
> It would be useful to have an option to enable/disable autoAddReplicas via an 
> API.
> This API would disable autoAddReplicas:
> {code}
> admin/collections?action=CLUSTERPROP&name=autoAddReplicas&val=false
> {code}
> Now when I want to enable it again the API call would look like this:
> {code}
> admin/collections?action=CLUSTERPROP&name=autoAddReplicas
> {code}
> This uses the CLUSTERPROP semantics of unsetting a property when the {{val}} 
> param is not provided.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to