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've got a sizeable Solr server which is chewing a pile of disk. Whilst it is indexing a large amount of data, I'm wondering if there's any operation that will reduce the size of the index, by say dropping deleted-but-still-allocated data in a similar manner to a VACUUM FULL in PostgreSQL, or are the solr indexes kept fairly tidy, and my only option is to just allocate a pile more diskspace?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

To my knowledge solr keeps its indexes fairly tidy. Are you deleting items from the index very often or only adding? If all you are doing is adding then you aren't even causing fragmentation... which is a good thing in your case since defragmenting a solr index (or optimizing it) causes the index to double in size while that process runs, which would probably be the opposite of what you're looking for. How much disk space are you chewing up right now?

share|improve this answer
    
There is some deletion going on, but I couldn't give you a ratio of deleted-to-not-deleted. There's somewhere around 22GB of indexes at present. –  womble Dec 16 '09 at 7:03
    
@DaveHolland: So are you saying that running a request to http://localhost:8080/solr/update?optimize=true doubles while optimizing, but when before/after results are compared, won’t the optimized index be smaller? –  JakeGould Jan 29 '13 at 12:12

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.