diff options
author | antirez <antirez@gmail.com> | 2012-04-21 19:20:03 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-04-21 20:34:45 +0200 |
commit | d3701d27141b8e400ccdf5fbf22c504d112fab63 (patch) | |
tree | a6a0e876e7db17d47fb3a8125c1b93d7dfef3bb1 /redis.conf | |
parent | fd72fe261dc8ac1f6450dfb6197391bb530ac5a0 (diff) | |
download | redis-d3701d27141b8e400ccdf5fbf22c504d112fab63.tar.gz |
Limit memory used by big SLOWLOG entries.
Two limits are added:
1) Up to SLOWLOG_ENTRY_MAX_ARGV arguments are logged.
2) Up to SLOWLOG_ENTRY_MAX_STRING bytes per argument are logged.
3) slowlog-max-len is set to 128 by default (was 1024).
The number of remaining arguments / bytes is logged in the entry
so that the user can understand better the nature of the logged command.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis.conf b/redis.conf index b1ea6c2ee..ed0e2f0e5 100644 --- a/redis.conf +++ b/redis.conf @@ -447,7 +447,7 @@ slowlog-log-slower-than 10000 # There is no limit to this length. Just be aware that it will consume memory. # You can reclaim memory used by the slow log with SLOWLOG RESET. -slowlog-max-len 1024 +slowlog-max-len 128 ############################### ADVANCED CONFIG ############################### |