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

Support cores:'EQUAL' %age , range in autoscaling policies

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: AutoScaling, SolrCloud
    • Labels:
      None

      Description

      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

      {"cores":"#EQUAL" , node: "#ANY"}
      

      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

      {"replica":"#EQUAL" , "node" : "#ANY"}
      

      It can be remedied by making this rule , not strict.

      {"cores":"#EQUAL" , "node": "#ANY", "strict"=false}
      

        Attachments

          Activity

            People

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: