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

Introduce a solr.data.home as root dir for all data

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.10.1
    • Fix Version/s: 7.0
    • Component/s: SolrCloud
    • Labels:
      None

      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

        1. SOLR-6671.patch
          16 kB
          Jan Høydahl
        2. SOLR-6671.patch
          24 kB
          Jan Høydahl
        3. SOLR-6671.patch
          13 kB
          Jan Høydahl
        4. SOLR-6671.patch
          8 kB
          Jan Høydahl
        5. SOLR-6671.patch
          8 kB
          Jan Høydahl
        6. SOLR-6671.patch
          5 kB
          Jan Høydahl
        7. SOLR-6671.patch
          5 kB
          Jan Høydahl
        8. SOLR-6671.patch
          4 kB
          Jan Høydahl

          Issue Links

            Activity

              People

              • Assignee:
                janhoy Jan Høydahl
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: