summaryrefslogtreecommitdiff
path: root/memcached.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-02-11 10:57:52 -0800
committerdormando <dormando@rydia.net>2022-02-11 16:48:33 -0800
commit0b35fb967a5088109d5237b00c8ef168a56a6f9a (patch)
tree91e5d3f750bfbde6890b8251d7bd62020423df2b /memcached.c
parent58351cdc1d5da2be9a2b4402c987c3cc9478ac7a (diff)
downloadmemcached-0b35fb967a5088109d5237b00c8ef168a56a6f9a.tar.gz
proxy: track in-flight requests
I wanted to do this via lua with some on-close hooks on the coroutine but this might work for now. not 100% sure I caught all of the incr/decr cases properly. Was trying to avoid hitting the counters too hard as well.
Diffstat (limited to 'memcached.c')
-rw-r--r--memcached.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memcached.c b/memcached.c
index 743a75a..79c4c11 100644
--- a/memcached.c
+++ b/memcached.c
@@ -1816,6 +1816,7 @@ void server_stats(ADD_STAT add_stats, conn *c) {
APPEND_STAT("proxy_conn_requests", "%llu", (unsigned long long)thread_stats.proxy_conn_requests);
APPEND_STAT("proxy_conn_errors", "%llu", (unsigned long long)thread_stats.proxy_conn_errors);
APPEND_STAT("proxy_conn_oom", "%llu", (unsigned long long)thread_stats.proxy_conn_oom);
+ APPEND_STAT("proxy_req_active", "%llu", (unsigned long long)thread_stats.proxy_req_active);
}
#endif
APPEND_STAT("delete_misses", "%llu", (unsigned long long)thread_stats.delete_misses);