Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

CONFIG RESETSTAT

Last updated
CONFIG RESETSTAT
Group
Server
Complexity
O(1)
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

CONFIG RESETSTAT sets the server’s cumulative counters back to zero, so you can measure a workload from a clean start. It resets:

  • connection counters: total_connections_received, rejected_connections, and the client buffer limit disconnection counts
  • command counters: total_commands_processed, the commandstats, errorstats and latencystats sections, and the data behind LATENCY HISTOGRAM
  • keyspace counters such as keyspace_hits, keyspace_misses, expired_keys and evicted_keys
  • total_net_input_bytes and total_net_output_bytes
  • ACL denial counts (acl_access_denied_*)
  • persistence and script statistics, and the cluster bus message counts

Data, configuration, the slow log and the latency monitor’s events are not touched; use SLOWLOG RESET and LATENCY RESET for those.

Simple string OK in RESP2 and RESP3.

127.0.0.1:6379> CONFIG RESETSTAT
OK
127.0.0.1:6379> INFO stats
# Stats
total_connections_received:0
total_commands_processed:1
...

Same as Redis 7 and Valkey 8.

INFO, SLOWLOG RESET, LATENCY RESET