HOTKEYS
HOTKEYS
- Available since:
- Redis Open Source 8.6.0
- Time complexity:
- Depends on subcommand.
- ACL categories:
-
@slow,
This is a container command for hotkeys tracking commands that provides a method for identifying hotkeys inside a Redis server during a specified tracking time period.
Hotkeys in this context are defined by two metrics:
- Percentage of CPU time spent on the key from the total time during the tracking period.
- Percentage of network bytes (input + output) used for the key from the total network bytes used by Redis during the tracking period.
Usage
The general workflow is for the user to initiate a hotkeys tracking process which should run for some time. The keys' metrics are recorded inside a probabilistic data structure, after which the user is able to fetch the top K metrics.
Available subcommands:
HOTKEYS START- Starts hotkeys tracking with specified metrics.HOTKEYS STOP- Stops hotkeys tracking but preserves data.HOTKEYS GET- Returns tracking results and metadata.HOTKEYS RESET- Releases resources used for tracking.