[8.6] Hotkeys - new command by nkaradzhov · Pull Request #3164 · redis/node-redis

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