Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-82707

Improve CatalogCache eviction policy

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing
    • CAR Team 2024-01-22, CAR Team 2024-02-05, CAR Team 2024-02-19
    • 3

    Description

      Currently the sharding catalog cache eviction policy is LRU with a hardcoded capacity of 10k entries. There are some improvements we could consider:

      • Making the capacity configurable.
      • Considering the size of the cached entry, which may vary wildly depending on each collection routing table size.
      • Being more aggressive in evicting long-unused entries.

      Attachments

        Activity

          People

            sulabh.mahajan@mongodb.com Sulabh Mahajan
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: