solr-operator icon indicating copy to clipboard operation
solr-operator copied to clipboard

How to keep the configsets directiory in solr pods with deployed with helm chart

Open saireddyb opened this issue 1 year ago • 1 comments

I have my collection configsets files and I want to keep them in /opt/solr-8.11.2/server/solr/configsets in this directory how to do that ?

saireddyb avatar Sep 11 '24 17:09 saireddyb

Hey @saireddyb. Going forward - deployment/setup questions are usually best sent to our "users" mailing list at [email protected]. There are a lot more eyes on that list, so you're likely to get a quicker response.

To your question...

Solr, in theory, allows users to customize their "ConfigSetService" via a setting in the solr.xml config file. If you provide the value "FileSystemConfigSetService" for this setting, you may be able to get SolrCloud to read configsets from the filesystem instead of ZooKeeper. For configset changes to be visible on all Solr pods, your configset directory would need to be a volume mounted by all pods. See the docs here for how to customize the solr.xml used by solrcloud resources.

That said - "configSetService" is an expert-level setting, and customizing this beyond Solr's defaults should be done with caution and only if needed. Do you have a particular reason for wanting to store and access configsets from your pod filesystem? What's the end-goal that you're trying to accomplish by doing that?

gerlowskija avatar Dec 12 '24 17:12 gerlowskija