Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9735 Umbrella JIRA for Auto Scaling and Cluster Management in SolrCloud
  3. SOLR-11038

Fix AutoScalingSnitch's use of usableSpace metrics to account for solr.data.home and dataDir in solrconfig.xml

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 7.0
    • 7.1
    • AutoScaling, metrics
    • None

    Description

      SOLR-6671 and related issues SOLR-11036 and SOLR-11037 made me realize that computing free disk available in order to place new replicas on nodes is not as trivial as currently implemented.

      Today we just use the metrics/solr.node/CONTAINER.fs.usableSpace metric which returns the usableSpace of the coreRootDirectory. But it has the following problems:

      1. The solrconfig.xml of the collection's configset may specify a different path than coreRootDirectory
      2. If solr.data.home is specified as a system property on the node then we must use that directory's usableSpace
      3. For both of the above, we must also use the coreRootDirectory's usableSpace for correctness otherwise the node will flat out refuse to create a core because it cannot create a core.properties on disk.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: