Skip to content

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)?

const reply = await client.hotkeysGet();
assert.notEqual(reply, null);

if (reply !== null) {
Copy link
Contributor

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]);
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

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

describe('HOTKEYS RESET', () => {
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

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

describe('HOTKEYS STOP', () => {
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

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