따라서 memcached는 사용량(적중 및 실패)을 추적하기 위한 많은 통계를 제공합니다.
샘플 출력 -
stats
STAT pid 1
STAT uptime 982226
STAT time 1630949306
STAT version 1.6.6
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 18.366158
STAT rusage_system 19.678998
STAT max_connections 65000
STAT curr_connections 7
STAT total_connections 3953
STAT connection_structures 17
STAT response_obj_bytes 2480
STAT response_obj_total 2
STAT response_obj_free 1
STAT response_obj_oom 0
STAT read_buf_bytes 32768
STAT read_buf_bytes_free 16384
STAT read_buf_oom 0
STAT reserved_fds 10
STAT cmd_get 8
STAT cmd_set 3980
STAT cmd_flush 0
STAT cmd_touch 0
STAT cmd_config_get 65475
STAT cmd_config_set 1
STAT cmd_meta 0
STAT get_hits 0
STAT get_misses 8
STAT get_expired 0
STAT get_flushed 0
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 4273871
STAT bytes_written 94622147
STAT limit_maxbytes 13932429312
STAT launch_time_maxbytes 13932429312
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT time_in_listen_disabled_us 0
STAT threads 2
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT curr_config 1
STAT malloc_fails 0
STAT log_worker_dropped 0
STAT log_worker_written 0
STAT log_watcher_skipped 0
STAT log_watcher_sent 0
STAT bytes 9202
STAT curr_items 50
STAT total_items 3939
STAT slab_global_page_pool 0
STAT expired_unfetched 3889
STAT evicted_unfetched 0
STAT evictions 0
STAT reclaimed 3889
STAT crawler_reclaimed 0
STAT crawler_items_checked 0
STAT lrutail_reflocked 0
get, delete, incr, delete에 대한 통계가 이 목록에 있습니다. 그러나 내 응용 프로그램은 다음을 광범위하게 사용합니다.추가하다업데이트에 실패할 때 자체적으로 표시할 특정 측정항목이 없습니다.
실제로 추가된 개수와 추가되지 않은 개수는 어떻게 확인할 수 있나요?
로깅 등을 통해 앱에서 이 작업을 수행할 수 있지만 memcached에 대한 모니터링 측정항목에서 이를 가져올 수 있는 방법을 찾고 있습니다.
이것이 가능합니까?