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

Configure min and max replication factor in policy rules

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • AutoScaling, SolrCloud
    • None

    Description

      There should be limits on how many maximum or minimum number of replicas can exist for a collection.

      // applies for all collections
      {"replica":">3", "shard":"#EACH"}
      {"replica":"<11", "shard":"#EACH"}
      

      The above two rules set a min of 2 and a max of 10 replicas for all collections in the cluster. When a new collection or shard is created, the given replicationFactor must be within these bounds or else the API call should fail. Similarly an addreplica and deletereplica call should also fail if the result of the call with violate these rules.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: