get_hot_shards
Identify hot shards on a Valkey or Redis cluster by returning shards above twice median CPU for a minute, with load, hot keys, and a read-only rebalance suggestion.
Instructions
Get the hot shards open on a cluster right now: each shard that has carried at least twice the median CPU for a minute, with its load, top slots, hot keys when they can be read, and a rebalance suggestion. Each hot shard names its primary in node (nodeId, address, role, plus shardId and availabilityZone when known, and collected: false when no connection of the monitor points at that node, so its own metrics are not gathered; connectionId names the connection that collects it). rebalance.kind is plan (slot ranges to move to named target shards, the projected load of every shard before and after, warnings such as a target short on memory or replicas, and in commands the command an operator can run for the move when support is valkey_atomic or redis_atomic) or no_plan with a reason: key_level (one or a few slots carry the load, so moving slots will not help), cluster_hot (the other shards together have no room), too_many_targets (there is room, but not within the 4 shards one suggestion may use), covered_by_other_plan (the plan for another hot shard, listed in coveredBy, already brings this one near the median: apply that plan first), conflicts_with_other_plan (no plan for this shard fits next to the plans for the hot shards listed in conflictsWith: apply those first), no_target, unhealthy_node, migration_running, settling or slots_scattered. The suggestion is read-only: nothing is moved. An empty list means no hot shard event is open; it does not prove the cluster is balanced: a shard must stay hot for a minute first, and the per-slot load must be measured (cluster-slot-stats-enabled yes on every primary, on a connection that reaches each node). Use when a cluster looks unbalanced or a hot_shard anomaly is open.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_hot_shards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | Optional instance ID override |