Skip to content

mumc_configyaml>admin_settings>cache>fallback_behavior

terrelsa13 edited this page Oct 27, 2024 · 3 revisions

  • Description
admin_settings:
  cache:
    fallback_behavior: string
  • Cache fallback behavior.

  • By default the MUMC uses a hybrid LRU/LFU RAM cache

  • The fallback_behavior is used when:

    1. Once the cache is too full for the next entry
    2. minimum_age is used to establish which entries are eligible for removal
    3. MUMC then tries to remove the oldest entry meeting the minimum_age with the lowest number of hits
    4. If no entrys meet the minimum_age or all entries all entries meeting the minimum_age have the same number of cache hits; then the fallback_behavior is used
  • Setting DEBUG: 1 will print the cache statistics to help determine the best cache settings (i.e. size, fallback_behavior, and minimum_age)

  • Fallback To:

    • FIFO - First In First Out (oldest entry is removed)
    • LFU - Least Frequently Used (first entry with the lowest number of hits is removed)
    • LRU - Least Recently Used (first entry with the oldest last access time is removed)

Example:

fallback_behavior: LRU
Clone this wiki locally