Skip to content

Commit

Permalink
Update valkey.conf
Browse files Browse the repository at this point in the history
Co-authored-by: Ping Xie <[email protected]>
Signed-off-by: zhaozhao.zz <[email protected]>
  • Loading branch information
soloestoy and PingXie authored Jan 21, 2025
1 parent 885a11c commit 0912399
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions valkey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2012,14 +2012,13 @@ commandlog-execution-slower-than 10000
# You can reclaim memory used by the slow log with SLOWLOG RESET or COMMANDLOG RESET SLOW.
commandlog-slow-execution-max-len 128

# The second type is LARGE-REQUEST, which is used to log commands with large requests.
# Which can consume network bandwidth and the client's query buffer. The request
# size of a command includes the command itself and all its arguments. For example,
# in the command SET KEY VALUE, if the key or value is relatively large and causes
# the overall command size to exceed the set threshold, it will be recorded.
#
# The threshold for command request size can be adjusted using the config below, with the
# unit being bytes.
# LARGE_REQUEST Command Logs
# The LARGE_REQUEST log tracks commands with requests exceeding a specified size. The request size
# includes the command itself and all its arguments. For example, in `SET KEY VALUE`, the size is
# determined by the combined size of the key and value. Commands that consume excessive network
# bandwidth or query buffer space are recorded here.

# The threshold is measured in bytes.
commandlog-request-larger-than 1048576
# Record the number of commands.
commandlog-large-request-max-len 128
Expand Down

0 comments on commit 0912399

Please sign in to comment.