lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (SOLR-11508) Make coreRootDirectory configurable via an environment variable (SOLR_CORE_HOME)
Date Mon, 04 Dec 2017 20:52:01 GMT


David Smiley commented on SOLR-11508:

coreRootDirectory is not a new concept and is already configurable.  You're merely making
it _easier_ (and more consistent) to configure.

I think making a setting like this dependent on wether you're in SolrCloud mode or not makes
this more confusing, but I understand your motivation.  I think more documentation can add
guidance on the use of these.  SOLR_DATA_DIR can be a gotcha for a docker user and that advise
can be in the Solr ref guide.  Future docker images can set things up correctly OOTB using
a "volume".

> Make coreRootDirectory configurable via an environment variable (SOLR_CORE_HOME)
> --------------------------------------------------------------------------------
>                 Key: SOLR-11508
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Marc Morissette
> (Heavily edited)
> Since Solr 7, it is possible to store Solr cores in separate disk locations using
(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
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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message