lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Re: Optimal Cache Settings, complicated by regular commits
Date Thu, 27 Aug 2009 20:08:38 GMT
Andrew,

Which version of Solr are you using?

There's an open issue to fix caching filters at the segment
level, which will not clear the caches on each commit, you can
vote to indicate your interest.
http://issues.apache.org/jira/browse/SOLR-1308

-J

On Thu, Aug 27, 2009 at 7:06 AM, Andrew Ingram<andy@andrewingram.net> wrote:
> Hi all,
> I'm trying to work out the optimum cache settings for our Solr server, I'll
> begin by outlining our usage.
>
> Number of documents: approximately 25,000
> Commit frequency: sometimes we do massive amounts of sequential commits,
> most of the time its less frequent but still several times an hour
> We make heavy use of faceting and sorting, and the number of possible facets
> led to choosing a filterCache size of about 50,000
>
> The problem we have is that the default cache settings resulting in very low
> hit rates (less than 30% for documents, less than 1% for filterCache), so we
> upped the cache size up gradually until the hit rates were in the 80s-90s,
> now we have the issue of commits being very slow (more than 5 seconds for a
> document), to the point where it causes a timeout elsewhere in our systems.
> This is made worse by the fact that committing seems to empty the cache,
> given that it takes about an hour to get the cache to a good state this is
> obviously very problematic.
>
> Is there a way for commits to selectively empty the cache? Any advice
> regarding the config would be appreciated. The server load is relatively
> low, ideally we're looking to minimize the response time rather than aim for
> CPU or memory efficiency.
>
> Regards,
> Andrew Ingram
>

Mime
View raw message