lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Mannix <jake.man...@gmail.com>
Subject Re: Realtime & distributed
Date Sun, 11 Oct 2009 22:36:05 GMT
Hey Eric,

  One clarification before letting the rest of this discussion sneak over to
the zoie list:

On Sun, Oct 11, 2009 at 1:51 PM, Angel, Eric <eangel@business.com> wrote:

* Am I wrong to assume that the RAMDir holds the entire index - just as the
> FSDir?  Or does RAMDir only hold a portion of the index that hasn't yet been
> flushed to disk?
>

With zoie, you index to the FSDir *and* the RAMDir simultaneously (so there
is increased CPU usage for indexing because of this),  but you only reopen()
the IndexReader on the FSDir every 15minutes (or so), so the fact that
you've been writing to it the whole while is invisible to the application in
the intervening time.  This means that a) you don't need to worry about
disaster recovery any worse than a regular non-realtime setup, and b) that
when it's time to reopen the FSDir based index, you don't need to write the
RAMDir to disk, you can just throw it away, as the disk already has the docs
that are in that RAMDir.

  -jake

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message