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

Limit LRUCache by RAM usage

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

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None

    Description

      Now that SOLR-7371 has made DocSet impls Accountable, we should add an option to LRUCache to limit itself by RAM.

      I propose to add a 'maxRamBytes' configuration parameter which it can use to evict items once the total RAM usage of the cache reaches this limit.

      Attachments

        1. SOLR-7372.patch
          8 kB
          Shalin Shekhar Mangar
        2. SOLR-7372.patch
          12 kB
          Shalin Shekhar Mangar
        3. SOLR-7372.patch
          13 kB
          Shalin Shekhar Mangar
        4. SOLR-7372.patch
          17 kB
          Shalin Shekhar Mangar
        5. SOLR-7372.patch
          0.8 kB
          Noble Paul

        Issue Links

        Activity

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

          People

            shalin Shalin Shekhar Mangar
            shalin Shalin Shekhar Mangar
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment