-
Type:
Sub-task
-
Status: Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 7.0
-
Fix Version/s: 7.1
-
Component/s: AutoScaling, metrics
-
Labels:None
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:
- The solrconfig.xml of the collection's configset may specify a different path than coreRootDirectory
- If solr.data.home is specified as a system property on the node then we must use that directory's usableSpace
- 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.
- is blocked by
-
SOLR-11036 MetricsHandler should report disk stats for solr.data.home
-
- Closed
-
- relates to
-
SOLR-6671 Introduce a solr.data.home as root dir for all data
-
- Resolved
-