summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authorKevin Lin <developer@kevinlin.info>2021-10-01 18:59:24 -0700
committerdormando <dormando@rydia.net>2021-11-23 15:58:17 -0800
commitcc0f24bca33d7e8a708b2d6405f39b5044b722ed (patch)
treec15dd39c767cb866bac2ac2f3e0f749b54f7cfd2 /memcached.h
parent75e4d574b34c6e3b5dd9330acd61097b75cdf1d3 (diff)
downloadmemcached-cc0f24bca33d7e8a708b2d6405f39b5044b722ed.tar.gz
Track store errors in thread stats
Add two new stat keys, `store_too_large` and `store_no_memory`, to track occurrences of storage request rejections due to writing too large of a value and writing beyond available provisioned memory, respectively.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h
index b7d4ad5..b0e10f7 100644
--- a/memcached.h
+++ b/memcached.h
@@ -320,7 +320,9 @@ struct slab_stats {
X(response_obj_oom) \
X(response_obj_count) \
X(response_obj_bytes) \
- X(read_buf_oom)
+ X(read_buf_oom) \
+ X(store_too_large) \
+ X(store_no_memory)
#ifdef EXTSTORE
#define EXTSTORE_THREAD_STATS_FIELDS \