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

Timothy Potter commented on SOLR-6833:
--------------------------------------

[~arafalov] suggested this too ... 

Couple of things:

# Should the distribution bundle include {{example/solr/solr.xml}}? Or should 
we just copy {{server/solr/solr.xml}} to example/solr in the script if it's not 
there already? I guess I prefer copying it over vs. maintaining another file in 
version control.

# I like the idea of putting the example logs under example/ too. Currently, 
the {{server/resources/log4j.properties}} file just uses the cwd of the Jetty 
server to determine the location of the log file, specifically, it does:

{code}
solr.log=logs/
...
log4j.appender.file.File=${solr.log}/solr.log
{code}

This translates to server/logs at runtime. What I'd like to do is change 
{{server/resources/log4j.properties}} to:

{code}
solr.log=${solr.solr.home}/logs/
...
log4j.appender.file.File=${solr.log}/solr.log
{code}

However, this will put logs under {{server/solr/logs}} instead of 
{{server/logs}}, which I actually like better since it allows you to reuse the 
server directory for multiple Solr nodes running on the same server with 
different solr.solr.homes, i.e. the following commands will result in two Solr 
nodes running on the same server, sharing the server directory but having 
different solr.solr.home directories:

{code}
bin/solr -p 8983 -s node1
bin/solr -p 8984 -s node2
{code}

If you do this now, then the log files will conflict with each other, so 
putting the logs directory under solr.solr.home will work better. If we don't 
think reusing the server directory is a big deal and want to keep server/logs, 
then I can also do: solr.log=${solr.solr.home}/../logs/ which will keep logs in 
server/logs or example/logs. Sorry if this is a bit pedantic but I want to make 
sure we're all in agreement with these changes since we're getting close to the 
5x release.


> bin/solr -e foo should not use server/solr as the SOLR_HOME
> -----------------------------------------------------------
>
>                 Key: SOLR-6833
>                 URL: https://issues.apache.org/jira/browse/SOLR-6833
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>             Fix For: 5.0
>
>
> i think it's weird right now that running bin/solr with the "-e" (example) 
> option causes it to create example solr instances inside the server directory.
> i think that's fine for running solr "normally" (ie: "start") but if you use 
> "-e" that seems like the solr.solr.home for those example should instead be 
> created under $SOLR_TIP/example.
> I would even go so far as to suggest that the *log* files created should live 
> in that directory as well.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to