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

Add a default policy to equally distribute replicas of a shard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • AutoScaling
    • None

    Description

      We should have a policy to the effect of "maxShardsPerHost=1" by default.

      I created a 4 node cluster , created lots of collection on node1 and node2.

      Then used the suggestions to move replicas. I ended up with a scenario where both replicas of a collection was on one node.

      So if we create a policy such that this can never happen as maxShardsPerHost=1 was the default

      {"replica": "<2", "shard" : "#EACH" , "node" :"#ANY", "strict" : "false" }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              varun Varun Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: