lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe (JIRA) <>
Subject [jira] Updated: (SOLR-571) LRUCache autowarmCount should support percentages
Date Fri, 23 Apr 2010 18:50:50 GMT


Tomás Fernández Löbbe updated SOLR-571:

    Attachment: SOLR-571.patch

On the attached patch, I modified classes LRUCache and FastLRUCache adding the capability
of using a percentage value in the "autowarmCount" parameter. The percentage value gets evaluated
with the current size of the "old" cache when warming the new cache.
I also added some tests of the new functionality.

> LRUCache autowarmCount should support percentages
> -------------------------------------------------
>                 Key: SOLR-571
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: SOLR-571.patch
> a recent thread reminded me of an old idea that never got implemented...
> the autowarmCount for LRUCaches should support "percentages" which get evaluated relative
the current size of the cache when warming happens.  
> in this way, a Solr instance might be configured with autowarmCount="50%" to autowarm
the top half of the queries ... a master machine might be configured this way to give some
autowarming if it is inadvertently being queried, but things won't be maintained in the caches
in perpetuity ... each subsequent cache instance would have fewer and fewer of the "old" queries
warmed automatically.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message