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

LRUCache autowarmCount should support percentages

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      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
          Hoss Man
        2. SOLR-571.patch
          19 kB
          Tomás Fernández Löbbe

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: