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

Create collection doesn't respect `maxShardsPerNode`

    XMLWordPrintableJSON

Details

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

    Description

      Command

      curl 'http://host:8983/solr/admin/collections?action=CREATE&name=xxx&numShards=16&replicationFactor=3&collection.configName=config&maxShardsPerNode=2&rule=shard:*,replica:<2,node:*&rule=shard:*,replica:<2,sysprop.aws.az:*'
      

      creates collection with 1,2 and 3 shard per nodes - looks like maxShardsPerNode is being ignored.

      Adding rule=replica:<{},node:* seems to help, but I'm not sure if this is correct and it doesn't seem to match documented behaviour.

      Attachments

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              mar-kolya Nikolay Martynov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: