redis/tests/unit/cluster
Slavomir Kaslev 0d8e750883
Add CLUSTER SLOT-STATS command (#14039)
Add CLUSTER SLOT-STATS command for key count, cpu time and network IO
per slot currently.

The command has the following syntax

    CLUSTER SLOT-STATS SLOTSRANGE start-slot end-slot

or

    CLUSTER SLOT-STATS ORDERBY metric [LIMIT limit] [ASC/DESC]

where metric can currently be one of the following

    key-count -- Number of keys in a given slot
cpu-usec -- Amount of CPU time (in microseconds) spent on a given slot
network-bytes-in -- Amount of network ingress (in bytes) received for
given slot
network-bytes-out -- Amount of network egress (in bytes) sent out for
given slot

This PR is based on:
    valkey-io/valkey#351
    valkey-io/valkey#709
    valkey-io/valkey#710
    valkey-io/valkey#720
    valkey-io/valkey#840

Co-authored-by: Kyle Kim <kimkyle@amazon.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Harkrishn Patro <harkrisp@amazon.com>

---------

Co-authored-by: Kyle Kim <kimkyle@amazon.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
2025-07-01 20:26:51 +03:00
..
announced-endpoints.tcl Fix tls port update not reflected in CLUSTER SLOTS (#13966) 2025-04-24 09:36:45 +08:00
cli.tcl redis-cli adds -4 / -6 options to determine IPV4 / IPV6 priority in DNS lookup (#11315) 2023-12-24 10:40:34 +02:00
cluster-response-tls.tcl Support TLS service when "tls-cluster" is not enabled and persist both plain and TLS port in nodes.conf (#12233) 2023-06-26 07:43:38 -07:00
failure-marking.tcl When one shard, sole primary node marks potentially failed replica as FAIL instead of PFAIL (#12824) 2024-01-11 15:48:19 -08:00
hostnames.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
human-announced-nodename.tcl Make nodename test more consistent (#12330) 2023-06-20 18:00:55 -07:00
internal-secret.tcl Fix internal-secret test flakiness under slow environment (#14024) 2025-05-14 16:31:41 +08:00
links.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
misc.tcl Exclude aux fields from "cluster nodes" and "cluster replicas" output (#12166) 2023-05-23 18:32:37 +03:00
multi-slot-operations.tcl Temporarily hide the new SFLUSH command by marking it as experimental (#13600) 2024-10-15 11:02:51 +03:00
scripting.tcl fix scripts access wrong slot if they disagree with pre-declared keys (#12906) 2024-01-15 09:57:12 +08:00
sharded-pubsub.tcl Adding AGPLv3 as a license option to Redis! (#13997) 2025-05-01 14:04:22 +01:00
slot-ownership.tcl bugfix:del keys in slot replicate to replica, and trigger other invalidations (#11084) 2022-08-28 11:37:26 +03:00
slot-stats.tcl Add CLUSTER SLOT-STATS command (#14039) 2025-07-01 20:26:51 +03:00