[
https://issues.apache.org/jira/browse/SOLR-13035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724152#comment-16724152
]
Jan Høydahl commented on SOLR-13035:
------------------------------------
I think we are all confused, and I think the problem is that the current
situation is not result of a careful design, but rather random addition of
various paths since Solr 1.x :)
So if the goal is to rectify this and create a clearer story where you can
install binaries R/O in SOLR_TIP and mount another partition for all R/W data,
including index, logs, config (solr-home), PID etc, then I don't see how
defaulting to SOLR_TIP will get us closer to that goal.
The Linux installer puts everything below /var/solr but it does not assign any
environment variable to that path. Instead, the various SOLR_HOME,
SOLR_DATA_DIR, SOLR_LOGS_DIR, PID_DIR, LOG4J_PROPS are explicitly placed in
various locations below that path.
So one way could be to let SOLR_VAR_ROOT, if not set, default to
{{SOLR_TIP/var}}, and thus if you simply unzip and start, this would be the
picture:
{noformat}
SOLR_TIP = /path/to/solr
SOLR_VAR_ROOT = $SOLR_TIP/var --> /path/to/solr/var
SOLR_HOME = $SOLR_VAR_ROOT/home --> /path/to/solr/var/home
SOLR_DATA_HOME= $SOLR_VAR_ROOT/data --> /path/to/solr/var/data
SOLR_LOGS_DIR = $SOLR_VAR_ROOT/logs --> /path/to/solr/var/logs
PID_DIR = $SOLR_VAR_ROOT --> /path/to/solr/var{noformat}
Then you could install a big disk and move SOLR_VAR_ROOT to
{{/mnt/bigdisk/solr}} and you're done. Likewise you could pass an
{{--vardir=/var/solr}} argument to the install script to tell it where R/W data
lives.
> Utilize solr.data.home / solrDataHome in solr.xml to set all writable files
> in single directory
> -----------------------------------------------------------------------------------------------
>
> Key: SOLR-13035
> URL: https://issues.apache.org/jira/browse/SOLR-13035
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Amrit Sarkar
> Priority: Major
> Attachments: SOLR-13035.patch, SOLR-13035.patch
>
>
> {{solr.data.home}} system property or {{solrDataHome}} in _solr.xml_ is
> already available as per SOLR-6671.
> The writable content in Solr are index files, core properties, and ZK data if
> embedded zookeeper is started in SolrCloud mode. It would be great if all
> writable content can come under the same directory to have separate READ-ONLY
> and WRITE-ONLY directories.
> It can then also solve official docker Solr image issues:
> https://github.com/docker-solr/docker-solr/issues/74
> https://github.com/docker-solr/docker-solr/issues/133
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]