Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-571

LRUCache autowarmCount should support percentages

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None

    Description

      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.

      Attachments

        1. SOLR-571.patch
          26 kB
          Chris M. Hostetter
        2. SOLR-571.patch
          19 kB
          Tomas Eduardo Fernandez Lobbe

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment