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

When there are multiple nodes oIn a host, snitch‘s rule override parameter 'maxShardsPerNode'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.2, 5.3, 5.3.1, 5.4, 5.4.1
    • None
    • Rules
    • None

    Description

      I have 3 hosts, deployed 5 solr nodes(instances) in per hosts, so there are 5*3=15 nodes in my environment.
      I created collection with snitch rule(Don’t assign more than 1 replica of a collection's shard to a host.).
      At last, I got following information:

      The create command like this:
      curl --negotiate -v "http://node01:8983/solr/admin/collections?action=CREATE&name=test1&collection.configName=SchemaTest1&numShards=15&replicationFactor=3&wt=json&indent=true&maxShardsPerNode=3&rule=host:,shard:,replica:1"

      There are 4 shards on a node as follwong information, but the maxShardsPerNode is 3.
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard10_replica2
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard11_replica1
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard12_replica3
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard14_replica3

      and there are 1 or 2 shards on some other nodes. such as:
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard17_replica2
      drwx------ 2 root root 4096 Jan 28 19:48 test1_shard9_replica1

      As if the snitch rule override the paramter maxShardsPerNode;
      When I remove the rule, there are 3 shards on per node in balance.

      In fact, I want that there are 3 shard on per node in balance, and very shard's replica on other host. How can I get it?

      Attachments

        Activity

          People

            Unassigned Unassigned
            davidchiu davidchiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: