Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6879

Have an option to disable autoAddReplicas temporarily for all collections

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      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:

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

      Now when I want to enable it again the API call would look like this:

      admin/collections?action=CLUSTERPROP&name=autoAddReplicas
      

      This uses the CLUSTERPROP semantics of unsetting a property when the val param is not provided.

        Attachments

        1. SOLR-6879.patch
          8 kB
          Varun Thacker
        2. SOLR-6879.patch
          7 kB
          Varun Thacker

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                varunthacker Varun Thacker
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: