Skip to content

[8.6] Hotkeys - new command#3164

Merged
nkaradzhov merged 2 commits intoredis:masterfrom
nkaradzhov:hotkeys
Jan 28, 2026
Merged

[8.6] Hotkeys - new command#3164
nkaradzhov merged 2 commits intoredis:masterfrom
nkaradzhov:hotkeys

Conversation

@nkaradzhov
Copy link
Collaborator

Description

NOTE: tests will fail for XINFO_STREAM command and that is expected and unrelated to this PR

Starts/stops tracking of hotkeys in a redis-server instance and reports top K such keys. Hotkeys are measured by two metrics - cpu execution time and total bytes read/written from the network. Reporting returns meaningful results only during or after stopping tracking.

https://docs.google.com/document/d/14BKzU7u0b-B54b18AbW3WZEZWvIDwGzMPjHFg-Tksl0

Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

import { parseArgs } from './generic-transformers';

describe('HOTKEYS GET', () => {
testUtils.isVersionGreaterThanHook([8, 4]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant if we're enforcing it in the minimumDockerVersion as well

@nkaradzhov nkaradzhov merged commit 2af536b into redis:master Jan 28, 2026
15 checks passed
@nkaradzhov nkaradzhov deleted the hotkeys branch January 28, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants