[jira] [Created] (SOLR-11476) Solr seems to ignore replica placement rules

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (SOLR-11476) Solr seems to ignore replica placement rules

JIRA jira@apache.org
Franz Wimmer created SOLR-11476:

             Summary: Solr seems to ignore replica placement rules
                 Key: SOLR-11476
                 URL: https://issues.apache.org/jira/browse/SOLR-11476
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: v2 API
    Affects Versions: 7.0.1, 7.0, 6.6.1
            Reporter: Franz Wimmer

I'm running Solr Cloud in OpenShift. I have set up 5 pods across the cluster, each running one solr node. The instances are managed by a ZooKeeper ensemble.

In Solr 6.1, when I created a collection with 5 shards and a replicationFactor of 2, it would distribute all 10 replicas evenly on the nodes. With Solr 6.6 and 7.0, the distribution is random (why would I even want to gather many shards on one node and leave another node empty?).

I tried using "Rule-based Replica Placement", but my rules seem to be ignored. I tried:


In all three cases, shards are distributed unevenly, often leaving one node completely empty.

What seems odd is, when i try a replicationFactor of 1, it still doesn't work, but the API response is suggesting otherwise:


Other than the returned JSON, the collection looks like this: !https://i.imgur.com/UwqwQ5e.png!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]