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

Shawn Heisey commented on SOLR-6671:
------------------------------------

I achieve separation between the instanceDir and dataDir with the following 
settings in solr.xml.  I'm using the old format.  These are not on separate 
filesystems, but they could be.  This method allows everything to have relative 
paths, so the entire structure can be relocated without a lot of config changes.

{noformat}
    <core name="s0live" instanceDir="cores/s0_1/" loadOnStartup="true" 
dataDir="../../data/s0_1" transient="false"/>
{noformat}

+1 for Jan's idea.  It would allow a cleaner config that doesn't need "../.." 
on the dataDir.


> Introduce a solr.data.root as root dir for all data
> ---------------------------------------------------
>
>                 Key: SOLR-6671
>                 URL: https://issues.apache.org/jira/browse/SOLR-6671
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.10.1
>            Reporter: Jan Høydahl
>             Fix For: 5.0, Trunk
>
>
> Many users prefer to deploy code, config and data on separate disk locations, 
> so the default of placing the indexes under 
> {{$\{solr.solr.home\}/$\{solr.core.name\}/data}} is not always wanted.
> In a multi-core/collection system, there is not much help in the 
> {{solr.data.dir}} option, as it would set the {{dataDir}} to the same folder 
> for all collections. One workaround, if you don't want to hardcode paths in 
> your {{solrconfig.xml}}, is to specify the {{dataDir}} property in each 
> {{solr.properties}} file.
> A more elegant solution would be to introduce a new Java-option 
> {{solr.data.root}} which would be to data the same as {{solr.solr.home}} is 
> for config. If set, all collections would default their {{dataDir}} as 
> {{$\{solr.data.root\)/$\{solr.core.name\}/data}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to