Description
Many users prefer to deploy code, config and data on separate disk locations, so the default of placing the indexes under ${solr.solr.home}/${solr.core.name}/data is not always wanted.
In a multi-core/collection system, there is not much help in the solr.data.dir option, as it would set the dataDir to the same folder for all collections. One workaround, if you don't want to hardcode paths in your solrconfig.xml, is to specify the dataDir property in each solr.properties file.
A more elegant solution would be to introduce a new Java-option solr.data.home which would be to data the same as solr.solr.home is for config. If set, all collections would default their dataDir as ${solr.data.home)/${solr.core.name}/data
Attachments
Attachments
Issue Links
- is depended upon by
-
SOLR-10906 Linux install script support for setting solr.solr.home, solr.data.home, solr.logs.dir mm
- Open
- is related to
-
SOLR-11038 Fix AutoScalingSnitch's use of usableSpace metrics to account for solr.data.home and dataDir in solrconfig.xml
- Closed
-
SOLR-11036 MetricsHandler should report disk stats for solr.data.home
- Closed
-
SOLR-11037 Add a method which returns the current solr.data.home directory without a CoreDescriptor argument
- Closed