lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-12495) Enhance the Autoscaling policy syntax to evenly distribute replicas among nodes
Date Wed, 04 Jul 2018 14:43:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-12495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532835#comment-16532835
] 

ASF subversion and git services commented on SOLR-12495:
--------------------------------------------------------

Commit cdb8a00a088cedb5f7031f242d3478cdab76e7f5 in lucene-solr's branch refs/heads/branch_7x
from [~noble.paul]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cdb8a00 ]

SOLR-12495: An #EQUALS function for replica in autoscaling policy to equally 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
>            Assignee: 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}
> {"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*
> {code}
> {"replica" : "<2"  , "shard" : "#EACH" , "port" : "8983"}{code}
> *case 1*: {{replicationFactor=3, nodes with port 8983 = 2}}
> this is equivalent to the hard coded rule
> {code}
> {"replica" : "<3"  , "shard" : "#EACH" , "port" : "8983"}{code}
> *example : 3:  distribute among other properties*
> {code}
> {"replica" : "#EQUAL"  , "sysprop.zone" : "#EACH"}
> {code}
> *case 1*: numShards = 3, replicationFactor=1, zones are : {{east}}, {{west}} (total =
2)
> this means each zone must have equal replicas . {{total replicas = 3 * 1 = 3}}, {{total
zones = 2}} , {{replicas per zone = 3/2 = 1.5}}
> The above case 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message