[
https://issues.apache.org/jira/browse/SOLR-9575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481108#comment-17481108
]
David Smiley commented on SOLR-9575:
------------------------------------
This issue is related in some sense to my proposal about a new SOLR_VAR last
August [Proposal for node configs to adhere to immutable
infrastructure|https://lists.apache.org/thread/3vvld3xnndtthtl7sfgdbsgkbtpm55b0].
It's a matter of how we get there (to immutable deployments). The way in
that thread is a new SOLR_VAR that is kind of like a peer to SOLR_HOME; the
distinction is which has the mutable data (obviously, SOLR_VAR would when
defined). An alternative path (maybe not articulated anywhere but I'll try
now): is not to have a SOLR_VAR and instead re-use SOLR_HOME as the place where
only mutable data lives. When something like configSets or even solr.xml can't
be found there, the fallback would be SOLR_INSTALL_DIR (or well known paths
anchored on that). Do we agree on that characterization? By resuming this
issue, it shows a preference for the latter. I'm totally good with it.
> Allow starting with an empty SOLR_HOME
> --------------------------------------
>
> Key: SOLR-9575
> URL: https://issues.apache.org/jira/browse/SOLR-9575
> Project: Solr
> Issue Type: Improvement
> Reporter: David Smiley
> Assignee: Jan Høydahl
> Priority: Major
> Labels: docker
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The user may not want to use Solr's default solr-home dir location -- most
> likely to use a separate disk. If you do this, there are two main problems:
> * solr.xml & zoo.cfg aren't there
> * configsets aren't there
> Of course you could copy it manually but that's an extra step, and it's
> particularly annoying to add this step to a Docker setup. Docker is all the
> rage these days, and for good reason. If I mount a volume at
> /opt/solr/server/solr then it basically masks this part of the built-in Solr
> image (thus making configsets completely invisible) and points to some place
> that will be empty. Solr obviously complains. I could set the solr-home to
> some other path that I mount, but Solr would still complain about an empty
> solr-home -- no solr.xml
> If solr-home is empty, and if it's a dir other than the default solr-home,
> then I think the solr-home should be initialized with solr.xml and zoo.cfg
> copied from the default solr-home. I think configsets should be referenced
> from the default solr-home if there is no configsets dir in solr-home.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]