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

Make coreRootDirectory configurable via an environment variable (SOLR_CORE_HOME)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      (Heavily edited)

      Since Solr 7, it is possible to store Solr cores in separate disk locations using solr.data.home (see SOLR-6671). This is very useful when running Solr in Docker where data must be stored in a directory which is independent from the rest of the container.

      While this works well in standalone mode, it doesn't in Cloud mode as the core.properties automatically created by Solr are still stored in coreRootDirectory and cores created that way disappear when the Solr Docker container is redeployed.

      The solution is to configure coreRootDirectory to an empty directory that can be mounted outside the Docker container.

      The incoming patch makes this easier to do by allowing coreRootDirectory to be configured via a solr.core.home system property and SOLR_CORE_HOME environment variable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marc.morissette Marc Morissette
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: