Skip to content

Tests Needed For LRU/LFU and HotKey Ananlyzer #68

Description

@HDT3213

Find the hottest N keys by LFU frequency from an RDB file.

Prerequisites: The RDB file must come from a Redis instance with LFU eviction policy (maxmemory-policy allkeys-lfu or volatile-lfu).

rdb -c hotkey -n 50 -o hotkey.csv dump.rdb

What to test:

  • Generate an RDB from a Redis instance with allkeys-lfu or volatile-lfu policy, verify the output contains correct LFU frequencies in JSON output
  • Generate an RDB from Redis with allkeys-lru or volatile-lru policy, verify the output contains correct LRU idle time field in JSON output
  • Test with -n flag (different values like 1, 10, 100)
  • Test with -regex filter combined with hotkey

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions