Memcached的慢查询(Memcached slow queries)

2019-10-17 11:35发布

我其实期待缓慢的响应时间上memcached的某些请求。 我运行一个服务器的NodeJS,客户端节点的memcached。 从日志文件中,我提取的响应时间分布,看起来像这样:

Count   Response time (ms)

6204    00001
4627    00002
1465    00003
 414    00004
 141    00005
  69    00006
  23    00007
  17    00008
  11    00009
   2    00010
   2    00011
   2    00012
   1    00015
   1    00016
   1    00020
   1    00023
   1    00024
   1    00026
   1    00076
   1    00212
   1    00213
   1    00214
   1    00215
   1    00217
   1    00219
   1    00220
   1    03004
   1    03010

什么是真正奇怪的是,这些异常请求,这消耗大约215和3000毫秒。 存储对象基本上是相同的,memcached的版本是1.4.5。 下面是来自(8)的一台服务器的统计数据:

STAT pid 2359
STAT uptime 12131402
STAT time 1355303458
STAT version 1.4.5
STAT pointer_size 64
STAT rusage_user 161954.749539
STAT rusage_system 423668.017596
STAT curr_connections 930
STAT total_connections 12097997
STAT connection_structures 1254
STAT cmd_get 46838365743
STAT cmd_set 1560759291
STAT cmd_flush 0
STAT get_hits 40796019120
STAT get_misses 6042346623
STAT delete_misses 237357218
STAT delete_hits 49942676
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 auth_cmds 0
STAT auth_errors 0
STAT bytes_read 4178933811835
STAT bytes_written 64248216431317
STAT limit_maxbytes 24062722048
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 8
STAT conn_yields 3956
STAT bytes 21362090264
STAT curr_items 14583102
STAT total_items 1560759290
STAT evictions 712640376
STAT reclaimed 131709403
文章来源: Memcached slow queries