redis_big_keys
Discover the largest Redis keys by memory usage with a budgeted SCAN that samples up to 200 keys, avoiding performance impact. Returns top keys and a coverage indicator to show sample completeness.
Instructions
[READ] SCAN-budgeted big-key sample — largest sampled keys first.
Walks at most 10,000 keys with SCAN and sizes at most 200 of them with MEMORY USAGE (never KEYS *), so it is safe on a production instance; coveragePct reports how partial the sample is.
Args: top: How many key rows to return, largest first (default 20). target: redis target name from config; omit for the default.
Returns an envelope: {"topKeys": [...], "returned": N, "limit": L, "truncated": bool}. When "truncated" is true there is more than was returned — do not treat this as the complete set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| target | No |