Skip to main content.
home | support | download

Back to List Archive

Re: Swapping indexes

From: Bill Moseley <moseley(at)>
Date: Fri Dec 03 2004 - 19:34:18 GMT
On Fri, Dec 03, 2004 at 11:25:41AM -0800, Brad Miele wrote:
> I am looking for a good solution for swapping indexes on my webservers.
> Currently, i rsync 4 1+ Gig indexes(and prop files) to a temporary area,
> then I run a script which tests each index, and as long as there is no
> error, it copies it to the live index directory, and then it restarts the
> webserver. The problem is that while the index is being copied to live,
> searches start to hang, and i get some huge http processes.

You mean the process of copying large files on your system cause
searches to hang?  Or some issue while the indexes are copied and
swish is reading invalid data?

How about moving directories instead?

   mv index_dir index_dir.old && mv index_dir

Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Fri Dec 3 11:34:18 2004