-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[8.6] Hotkeys - new command #3164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| const reply = await client.hotkeysGet(); | ||
| assert.notEqual(reply, null); | ||
|
|
||
| if (reply !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if seems redundant given the assert above it
| import { parseArgs } from './generic-transformers'; | ||
|
|
||
| describe('HOTKEYS GET', () => { | ||
| testUtils.isVersionGreaterThanHook([8, 4]); |
There was a problem hiding this comment.
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
| import { parseArgs } from './generic-transformers'; | ||
|
|
||
| describe('HOTKEYS RESET', () => { | ||
| testUtils.isVersionGreaterThanHook([8, 4]); |
There was a problem hiding this comment.
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
| import { parseArgs } from './generic-transformers'; | ||
|
|
||
| describe('HOTKEYS STOP', () => { | ||
| testUtils.isVersionGreaterThanHook([8, 4]); |
There was a problem hiding this comment.
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
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
npm testpass with this change (including linting)?