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

Make it possible to place a replica of a collection on all nodes satisfying a given property

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.1, master (9.0)
    • Component/s: AutoScaling, SolrCloud
    • Labels:
      None

      Description

      Today replicas are placed according to policy rules but there is no way to drive the number of replicas based on policy e.g.

      Example 1: Put a replica of each shard of collection A on each node in the cluster

      {"replica":">0", "node", "#ANY", "shard" : "#EACH", "collection" : "A"}
      

      Example 2: Put a replica of each shard of collection A on every nodes with sysprop.region=east

      {"replica":">0", "sysprop.region", "east", "shard" : "#EACH", "collection" : "A"}
      

      The above two rules can be used to compute the replication factor of collection A but today the replicationFactor parameter passed in collection/shard creation neither takes the rule into account nor does it prevent conflicts. In fact, the replicationFactor should be omitted while creating collection A if the above rules are present.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shalin Shalin Shekhar Mangar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: