diff options
author | Matthew Oliver <matt@oliver.net.au> | 2021-06-11 11:29:40 +1000 |
---|---|---|
committer | Alistair Coles <alistairncoles@gmail.com> | 2022-02-15 16:54:17 +0000 |
commit | 05d83b0a476b5cabcb25e514b31218cc0b37c1fd (patch) | |
tree | 1f44d8b28bcc20b017d16e8e286a5bfa0fdcc385 /etc | |
parent | 57f17ace7c911b80587a03634346478b6ca432e8 (diff) | |
download | swift-05d83b0a476b5cabcb25e514b31218cc0b37c1fd.tar.gz |
memcache: Add an item_size_warning_threshold option
Whenever an item is set which is larger than item_size_warning_threshold
then a warning is logged in the form:
'Item size larger than warning threshold: 2048576 (2Mi) >= 1000000 (977Ki)'
Setting the value to -1 (default) will turn off the warning.
Change-Id: I1fb50844d6b9571efaab8ac67705b2fc1fe93e25
Diffstat (limited to 'etc')
-rw-r--r-- | etc/memcache.conf-sample | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/memcache.conf-sample b/etc/memcache.conf-sample index 18faa668e..b375eb402 100644 --- a/etc/memcache.conf-sample +++ b/etc/memcache.conf-sample @@ -56,3 +56,9 @@ # specified in tls_certfile. If tls_enabled is False, this option # is ignored. # tls_keyfile = +# +# If an item size ever gets above item_size_warning_threshold then a warning will be +# logged. This can be used to alert when memcache item sizes are getting to their limit. +# It's an absolute size in bytes. Setting the value to 0 will warn on every memcache set. +# A value of -1 disables the warning. +# item_size_warning_threshold = -1 |