logo       

Re: try Searchable ... Re: Index location for multiple servers: msg#00056

lang.ruby.ferret.general

Subject: Re: try Searchable ... Re: Index location for multiple servers


On 07.12.2006, at 19:19, Raymond O'connor wrote:

> I may be a special case since my index is never updated through my
> frontend app, but I was planning on keeping one "gold" index on a
> backend server and update this index through a script whenever
> there are
> updates to my documents (about once a week in my case). This server
> will update the index and then do basically a cp to the frontend
> webservers and copy over the old indexes on each of these machines.
> What do people think of this solution? The searchable drb solution
> looks interesting though and I may consider it if I run into issues
> doing it this way.

If updates happen so rarely, this might be a feasible solution. At
least, it involves less moving parts than an indexing server would
and it's faster than querying a remote server. I'm not sure, however,
if Ferret would like it if the index files are overwritten during a
read operation. You could write a capistrano recipe which shuts down
your app, updates the index files and restarts it afterwards.
Depending on the size of your index, this involves downtimes of a few
seconds which is certainly tolerable.

--
Andy


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise