Skip to main content.
home | support | download

Back to List Archive

Re: Swapping indexes

From: Bill Moseley <moseley(at)not-real.hank.org>
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.new index_dir

-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Fri Dec 3 11:34:18 2004