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

Deprecate maxShardsPerNode while creating collections

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Today maxShardsPerNode helps users ensure multiple replicas of the same shard don't get assigned to the same node.

      Starting 7.0 , the policy framework can express the same constraint.

      Both can conflict today.

      If a user creates a collection with maxShardsPerNode=1 here's the equivalent of it in the policy framework.

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

      http://lucene.apache.org/solr/guide/solrcloud-autoscaling-policy-preferences.html#limit-replica-placement

      We should also change the default of maxShardsPerNode from 1 to -1 so that it doesn't fail commands when a user doesn't specify this parameter.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: