github地址
通过telnet ip 端口 连接到指定的mcrouter服务器,发送stats命令或者stats all命令返回的参数详解:
stats all太多了,我就记录一下我使用的一些stats返回的参数部分详解:
stats
版本
STAT version 34.0.0-master mcrouter
执行的启动命令
STAT commandargs --log-path=/home/mcrouter
mcrouter的进程id
STAT pid 18168
启动的进程id
STAT parent_pid 1
当前服务器时间
STAT time 1573807884
STAT uptime 341907
总连接数好像
STAT num_servers 10240
新增连接数好像
STAT num_servers_new 10119
STAT num_servers_up 0
STAT num_servers_down 0
关闭连接数好像
STAT num_servers_closed 121
连接数
STAT num_clients 8
STAT num_suspect_servers 0
STAT destination_batches_sum 0
STAT destination_requests_sum 0
STAT outstanding_route_get_reqs_queued 0
STAT outstanding_route_update_reqs_queued 0
STAT outstanding_route_get_avg_queue_size 0
STAT outstanding_route_update_avg_queue_size 0
STAT outstanding_route_get_avg_wait_time_sec 0
STAT outstanding_route_update_avg_wait_time_sec 0
STAT retrans_closed_connections 0
STAT destination_pending_reqs 0
STAT destination_inflight_reqs 0
STAT destination_batch_size 0
STAT asynclog_requests 0
STAT proxy_reqs_processing 1
STAT proxy_reqs_waiting 0
STAT client_queue_notify_period 0
STAT rusage_system 1044.47
STAT rusage_user 6870.07
STAT ps_num_minor_faults 190484
STAT ps_num_major_faults 0
STAT ps_user_time_sec 6870.06
STAT ps_system_time_sec 1044.47
STAT ps_vsize 13831335936
STAT ps_rss 603262976
STAT fibers_allocated 688
STAT fibers_pool_size 688
STAT fibers_stack_high_watermark 5252
STAT successful_client_connections 221
STAT cycles_avg 0
STAT cycles_min 0
STAT cycles_max 0
STAT cycles_p01 0
STAT cycles_p05 0
STAT cycles_p50 0
STAT cycles_p95 0
STAT cycles_p99 0
STAT cycles_num 0
STAT duration_us 50.4177
STAT destination_max_pending_reqs 0
STAT destination_max_inflight_reqs 0
cas操作次数
STAT cmd_cas_count 1
delete操作次数
STAT cmd_delete_count 100017
get操作次数
STAT cmd_get_count 5
gets操作次数(传多个key(list<String>))
STAT cmd_gets_count 46042
set操作次数
STAT cmd_set_count 46021
STAT cmd_cas_outlier_count 0
STAT cmd_cas_outlier_all_count 0
STAT cmd_delete_outlier_count 0
STAT cmd_delete_outlier_all_count 0
STAT cmd_get_outlier_count 0
STAT cmd_get_outlier_all_count 0
STAT cmd_gets_outlier_count 0
STAT cmd_gets_outlier_all_count 0
STAT cmd_set_outlier_count 0
STAT cmd_set_outlier_all_count 0
STAT cmd_other_outlier_count 0
STAT cmd_other_outlier_all_count 0
STAT cmd_cas 0
STAT cmd_delete 0
STAT cmd_get 0
STAT cmd_gets 0
STAT cmd_set 0
STAT cmd_cas_outlier 0
STAT cmd_cas_outlier_all 0
STAT cmd_delete_outlier 0
STAT cmd_delete_outlier_all 0
STAT cmd_get_outlier 0
STAT cmd_get_outlier_all 0
STAT cmd_gets_outlier 0
STAT cmd_gets_outlier_all 0
STAT cmd_set_outlier 0
STAT cmd_set_outlier_all 0
STAT cmd_other_outlier 0
STAT cmd_other_outlier_all 0
STAT retrans_per_kbyte_max 0
END