Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Invalid
-
7.0
-
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:
- 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.
Attachments
Issue Links
- 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
-