Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to setup properly Solr under a debian machine. It's working ok but the I'm not sure where's the best location for the index files. Currently they are inside the application's folder but I don't really like this approach. I was thinking some of the following :

  • /var/lib/solr/index-name
  • /var/solr/index-name
  • /usr/share/solr

I like the first cause it follows debian's convention but the second is more obvious to me. Any thoughts???

share|improve this question

1 Answer 1

up vote 3 down vote accepted

I'd go with the first: /var/lib/solr. Why?

Following the FHS on the var folder:

  1. There is a set of predefined folders inside var. It doesn't mean that you cannot add more, but you could prefer not to make it dirty.
  2. The /var/lib is where programs store the variable information they need to run. (Correct me if I'm wrong but I guess mysql uses /var/lib/mysql, for example).
share|improve this answer
    
Regarding 2 : Yes, mysql goes there and I guess also redis goes there, etc, etc so I guess yes it makes sense... –  Nikos D. Sep 22 '11 at 11:02
    
P.S. : Thanks for the link –  Nikos D. Sep 22 '11 at 11:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.