Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
master
-
0
Description
memcached has long supported an undocumented "aggregate" stats group which returns a limited set of metrics aggregated across all buckets:
‡ ../install/bin/cbstats localhost:12000 -u Administrator -p asdasd raw aggregate
|
auth_cmds: 0
|
auth_errors: 0
|
bytes_read: 30451
|
bytes_subdoc_lookup_extracted: 0
|
bytes_subdoc_lookup_total: 0
|
bytes_subdoc_mutation_inserted: 0
|
bytes_subdoc_mutation_total: 0
|
bytes_written: 24826468
|
cas_badval: 0
|
cas_hits: 0
|
cas_misses: 0
|
cmd_flush: 0
|
cmd_get: 0
|
cmd_lock: 0
|
cmd_lookup: 0
|
cmd_lookup_10s_count: 0
|
cmd_lookup_10s_duration_us: 0
|
cmd_mutation: 0
|
cmd_mutation_10s_count: 0
|
cmd_mutation_10s_duration_us: 0
|
cmd_set: 0
|
cmd_subdoc_lookup: 0
|
cmd_subdoc_mutation: 0
|
cmd_total_gets: 0
|
cmd_total_ops: 0
|
cmd_total_sets: 0
|
conn_yields: 0
|
connection_structures: 14
|
curr_connections: 18
|
daemon_connections: 4
|
daemon_memory_allocated: 20225040
|
daemon_memory_resident: 26247168
|
decr_hits: 0
|
decr_misses: 0
|
delete_hits: 0
|
delete_misses: 0
|
get_hits: 0
|
get_misses: 0
|
incr_hits: 0
|
incr_misses: 0
|
iovused_high_watermark: 0
|
lock_errors: 0
|
memcached_version: 128b8cffaebb3d7a7a279d6f73990674208a9c84
|
msgused_high_watermark: 0
|
rejected_conns: 0
|
stat_reset: Tue Mar 28 15:40:09 2023
|
stat_timings_mem_usage: 22128
|
system_connections: 7
|
threads: 8
|
time: 1680014917
|
total_connections: 21
|
total_resp_errors: 0
|
uptime: 508
|
version: 0.0.0-0000
|
This stat group is currently unused by the product - it used to be used by ns_server prior to the prometheus migration, and it's also not used by cbcollect_info, nor documented.
We should remove this group to simplify the stats tracking logic inside memcached; this also allows us to repurpose the "no bucket" - currently used to hold aggregate stats - to track operations when no bucket is selected.
Attachments
Issue Links
- relates to
-
MB-56183 KV requests not associated with a bucket are not included in opcode stats
- Closed