CONFIG RESETSTAT
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, thecommandstats,errorstatsandlatencystatssections, and the data behind LATENCY HISTOGRAM - keyspace counters such as
keyspace_hits,keyspace_misses,expired_keysandevicted_keys total_net_input_bytesandtotal_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.
Return value
Section titled “Return value”Simple string OK in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> CONFIG RESETSTATOK127.0.0.1:6379> INFO stats# Statstotal_connections_received:0total_commands_processed:1...Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.