Skip to content

feat(bigkeys): add cluster slot heatmap visualization - #570

Open
RajGahoi wants to merge 1 commit into
valkey-io:mainfrom
RajGahoi:feat/big-keys-cluster-slot-heatmap
Open

RajGahoi wants to merge 1 commit into
valkey-io:mainfrom
RajGahoi:feat/big-keys-cluster-slot-heatmap

Conversation

@RajGahoi

Copy link
Copy Markdown
Contributor

Fixes #540

Description

This PR introduces a Slot Heatmap for the Big Keys view in cluster mode, following the design and architecture established by the Hot Keys slot heatmap (#503). It allows operators to immediately pinpoint hash slots that concentrate big keys and diagnose cluster memory skew.

Key Changes

  1. Valkey Cluster Hash Slot Engine (\common/src/cluster-slots.ts):
    • Implemented standard Valkey / Redis cluster hash slot calculation (\getKeySlot, \getHashTag, \crc16).
    • Implements CRC16-CCITT with polynomial \

- Implement Valkey / Redis cluster slot calculation engine (getKeySlot, getHashTag, crc16) in valkey-common following CRC16-CCITT and hash-tag RFC specification
- Enrich BigKey entries on both server and frontend with accurate slotId
- Add BigKeysSlotHeatmap and BigKeysSlotHeatmapModal with slot tiles, responsive grid, dynamic heat coloring, legend filter bands, and node filter dropdown
- Support slot key inspection listing key name, size, type, and TTL with click-to-navigate action
- Add Heatmap button to Big Keys toolbar in cluster mode while hiding in standalone mode
- Document Cluster Slot Heatmap feature in activity documentation
- Add comprehensive test suites for cluster slot calculation and heatmap components

Fixes valkey-io#540

Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 99a1ec20-755b-48a5-bec3-ad3616d9d58f
📥 Commits

Reviewing files that changed from the base of the PR and between 0161e2a and c5dca9a.

📒 Files selected for processing: 11
  • apps/frontend/src/components/activity-view/ActivityView.tsx
  • apps/frontend/src/components/activity-view/bigkeys/__tests__/big-keys-slot-heatmap.test.tsx
  • apps/frontend/src/components/activity-view/bigkeys/big-keys-slot-heatmap.tsx
  • apps/frontend/src/components/activity-view/bigkeys/big-keys-slot-utils.ts
  • apps/frontend/src/components/activity-view/bigkeys/big-keys.tsx
  • apps/frontend/src/state/valkey-features/bigkeys/bigKeysSlice.ts
  • apps/server/src/actions/bigkeys.ts
  • common/src/__tests__/cluster-slots.test.ts
  • common/src/cluster-slots.ts
  • common/src/index.ts
  • docs-site/src/content/docs/features/activity.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added area/frontend UI components, state, routing area/server Backend, WebSocket, actions area/docs Documentation site labels Oct 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation site area/frontend UI components, state, routing area/server Backend, WebSocket, actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Big Keys: slot heatmap for cluster mode

1 participant