On 12/14/2010 8:31 AM, Tim Heckman wrote:
When using the index replication over HTTP that was introduced in Solr
1.4, what is the recommended way to periodically clean up old indexes
on the slaves?
I found references to the snapcleaner script, but that seems to be for
the older ssh/rsync replication model.
It's supposed to take care of removing the old indexes on its own - when
everything is working, it builds an index.<timestamp> directory,
replicates, swaps that directory in to replace index, and deletes the
directory with the timestamp. I have not been able to figure out what
circumstances make this process break down and cause Solr to simply use
the timestamp directory as-is, without deleting the old one. For me, it
works most of the time. I'm running 1.4.1.
Shawn