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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • AutoScaling, SolrCloud
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: