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

Add serverStatus metric for the number of entries evicted from the telemetry store

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-02-06, QO 2023-02-20

      Currently, LRUKeyValue (used by each partition in the telemetry store to cache entries) memory budget tracker only considers the memory used by the value in the <key, value> pair saved to LRUKeyValue KVList. The memory budget tracker needs to be updates to track all the memory used by LRUKeyValue: the key, the value, the map that associates keys to their position in KVList. This ticket will account for the memory used by the key and the value. A subsequent ticket address tracking the memory used by KVMap.

       

      Without this change, entries are only evicted when the amount of memory allocated to a partition is too small to accommodate even a single entry or when 20k queries are run with small cache size and default partition number (1024)**. Thus, in order to record number of entries evict, we need to evict some. And in order to evict, we need to record the amount of memory being used accurately.

       

       

        • for the purposes of this ticket, a unit test will be written to change the number of partitions in order to create a small cache with few partitions that has a small bar for evicting entries.

            Assignee:
            maddie.zechar@mongodb.com Maddie Zechar
            Reporter:
            joshua.lapacik@mongodb.com Joshua Lapacik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: