[ 
https://issues.apache.org/jira/browse/SOLR-13035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706599#comment-16706599
 ] 

Shalin Shekhar Mangar commented on SOLR-13035:
----------------------------------------------

I think the core case of separating read-only directories of Solr and writable 
directories should be addressed. The docker-solr project had to do a lot of 
workarounds to make this work. The world is moving to containers and we need to 
make those use-cases easy.

In a container, the directory containing configuration such as solr.xml is 
empty so that a volume can be mounted there, same for instance dir and data 
dir. The rest of the directories in the container should be read-only.

The solr.data.home takes us most of the way there. But if that's not the right 
flag then we can change it or create a new one (I don't like the latter idea). 
Perhaps we can it {{solr.write.dir}}? Now the ideal directory layout can be 
top-level directories such as {{conf}}, {{data}}, {{logs}} instead of 
conflating them under a {{server/solr}} directory as today. If people agree on 
that then we can work on doing this for 8.0.

> 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.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 also started in SolrCloud mode. It would be great if 
> all writable content can come under the same directory.
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to