Search code examples
solrreplication

Can I manualy copy SOLR index files?


I have a cluster of 3 sharded SOLR 4.1. There is a replicated cluster but the data is quite out of synced. I have stopped polling on those secondary nodes for a long time.

Now I want to start the replication again but I'm afraid it would take too long to replicate 400GB index data on each node.

If I manually copy over the index files from the master to the slave node, will it work?

Thanks


Solution

  • Yes, that should work just fine - as long as you don't write to the index while copying it (or copy it from a snapshot). In fact, that's what the replication does in the background (by replicating the segment files that needs replicating).

    In older versions of Solr the replication was just shell scripts triggered to copy the index to other servers after an update happened.