[ https://issues.apache.org/jira/browse/SOLR-12495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul updated SOLR-12495: ------------------------------ Summary: Enhance the Autoscaling policy syntax to evenly distribute replicas among nodes (was: Enhance the Autoscaling policy syntax to evenly distribute replicas) > Enhance the Autoscaling policy syntax to evenly distribute replicas among > nodes > ------------------------------------------------------------------------------- > > Key: SOLR-12495 > URL: https://issues.apache.org/jira/browse/SOLR-12495 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) > Components: AutoScaling > Reporter: Noble Paul > Priority: Major > > Support a new function value for {{replica= "#EQUAL"}} > {{#EQUAL}} means the equal no:of replicas on each {{"node"}} > the value of replica will be calculated as {{<= > Math.ceil(number_of_replicas/number_of_valid_nodes) }} > *example 1:* > {code:java} > {"replica" : "#EQUAL" , "shard" : "#EACH" , "node" : "#ANY"} > {code} > *case 1* : nodes=3, replicationFactor=4 > the value of replica will be calculated as {{Math.ceil(4/3) = 1.33}} > current state : nodes=3, replicationFactor=2 > this is equivalent to the hard coded rule > {code:java} > {"replica" : "<3" , "shard" : "#EACH" , "node" : "#ANY"} > {code} > *case 2* : > current state : nodes=3, replicationFactor=2 > this is equivalent to the hard coded rule > {code:java} > {"replica" : "<3" , "shard" : "#EACH" , "node" : "#ANY"} > {code} > *example:2* > {code:java} > {"replica" : "#EQUAL" , "node" : "#ANY"}{code} > *case 1*: numShards = 2, replicationFactor=3, nodes = 5 > this is equivalent to the hard coded rule > {code:java} > {"replica" : "<3" , "node" : "#ANY"} > {code} > *example:3 distribute among multiple unique properties* -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org