Noble Paul created SOLR-12592:
---------------------------------

             Summary: Support the cores:'EQUAL' in autoscaling policies
                 Key: SOLR-12592
                 URL: https://issues.apache.org/jira/browse/SOLR-12592
             Project: Solr
          Issue Type: New Feature
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Noble Paul
            Assignee: Noble Paul


It's possible to  sort nodes according to cores and the system can normally 
prefer nodes with fewer cores when placing new replicas. However, it may not 
give suggestions to move off replicas , if the system  is already in an 
unbalanced state.
The following rule may help achieve such a balanced distribution of cores
{code}
{"cores":"#EQUAL" , node: "#ANY"}
{code}

The value of cores is computed as {{total_cores/total_nodes}}. for e.g: if 
there are 28 cores in total and there are 5 nodes . the value of cores= 28/5 = 
5.6. This means a node may have either 5 cores or 6 cores.

It's possible that this may cause a conflict with other collection-specific 
rules such as
{code}
{"replica":"#EQUAL" , "node" : "#ANY"}
{code}

It can be remedied by making this rule , not strict.
{code}
{"cores":"#EQUAL" , "node": "#ANY", "strict"=false}
{code}




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

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

Reply via email to