博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ATS metric query
阅读量:5131 次
发布时间:2019-06-13

本文共 2973 字,大约阅读时间需要 9 分钟。

ATS metric query

参考

1 proxy.node.cache_hit_mem_ratio 2 proxy.node.cache_hit_mem_ratio_avg_10s     #查询当前内存命中率 3  4 proxy.node.cache_hit_ratio 5 proxy.node.cache_hit_ratio_avg_10s         #查询当前缓存(cache.db)命中率 6  7 proxy.node.bandwidth_hit_ratio 8 proxy.node.bandwidth_hit_ratio_avg_10s     #查询当前带宽命中率 9 10 11 12 proxy.node.current_cache_connections       #前端用户到cache.db链接数13 14 proxy.node.cache.percent_free              #Cache Percent Free(cache.db空闲空间百分比)15 16 proxy.node.current_client_connections      #前端用户到ATS的连接数17 18 proxy.node.current_server_connections      #到后端源站的连接数19 20 proxy.node.user_agent_xacts_per_second     #平均每秒处理的客户端并发数21 22 proxy.node.client_throughput_out           #当前ATS输出到前端的带宽流量(单位Mbps)23 24 proxy.node.current_cache_connections 等价于 proxy.node.http.cache_current_connections_count2526 proxy.node.current_client_connections 等价于 proxy.node.http.user_agent_current_connections_count27 28 proxy.node.current_server_connections 等价于 proxy.node.http.origin_server_current_connections_count

 


关于带宽命中率参考: 

  • proxy.node.bandwidth_hit_ratio
    • The difference of proxy.node.user_agent_total_bytes and proxy.node.origin_server_total_bytes, divided by proxy.node.user_agent_total_bytes.
    • Represents the ratio of bytes served to user agents which were satisfied by cache hits, since statistics collection began.
  • proxy.node.bandwidth_hit_ratio_avg_10s
    • The difference of proxy.node.user_agent_total_bytes_avg_10s and proxy.node.origin_server_total_bytes_avg_10s, divided by proxy.node.user_agent_total_bytes_avg_10s.
    • Represents the ratio of bytes served to user agents which were satisfied by cache hits, over the previous 10 seconds.

带宽命中率可由下面计算得来:

1 [root@~]# /opt/soft/ats/bin/traffic_ctl metric match total_bytes_avg_10s 2 proxy.node.user_agent_total_bytes_avg_10s 2161301760.000000 3 proxy.node.origin_server_total_bytes_avg_10s 176160640.000000 4 proxy.cluster.user_agent_total_bytes_avg_10s 1325454080.000000 5 proxy.cluster.origin_server_total_bytes_avg_10s 1294467072.000000 6 [root@~]#  7 [root@~]# /opt/soft/ats/bin/traffic_ctl metric get proxy.node.bandwidth_hit_ratio_avg_10s 8 proxy.node.bandwidth_hit_ratio_avg_10s 0.918493 9 [root@~]# 10 [root@~]# awk 'BEGIN{print (2161301760-176160640)/2161301760}'11 0.91849312 [root@~]#

 


关于ATS向前端输出的带宽值

  • proxy.node.http.throughput

10秒内的响应客户端的输出带宽值,单位是 bytes

1 proxy.node.http.throughput2 Collection:    global3 Type:    gauge4 Units:    bytes5 Datatype:    integer6 The throughput of responses to user agents over the previous 10 seconds, in bytes.

 

  • proxy.node.client_throughput_out

10秒内的响应客户端的输出带宽值,单位是 megabits

1 proxy.node.client_throughput_out2 Collection:    global3 Type:    gauge4 Units:    mbits5 Datatype:    float6 The value of proxy.node.http.throughput represented in megabits.

 

Code:

1 integer 'proxy.node.http.throughput' [[2   local self = ...3 4   return rate_of_10s(self,5     function() return proxy.node.http.user_agent_total_response_bytes end6   )7 ]]


转载于:https://www.cnblogs.com/standby/p/6792944.html

你可能感兴趣的文章
springboot No Identifier specified for entity的解决办法
查看>>
浅谈 unix, linux, ios, android 区别和联系
查看>>
51nod 1428 活动安排问题 (贪心+优先队列)
查看>>
Solaris11修改主机名
查看>>
latex for wordpress(一)
查看>>
如何在maven工程中加载oracle驱动
查看>>
Flask 系列之 SQLAlchemy
查看>>
aboutMe
查看>>
【Debug】IAR在线调试时报错,Warning: Stack pointer is setup to incorrect alignmentStack,芯片使用STM32F103ZET6...
查看>>
一句话说清分布式锁,进程锁,线程锁
查看>>
FastDFS使用
查看>>
服务器解析请求的基本原理
查看>>
[HDU3683 Gomoku]
查看>>
下一代操作系统与软件
查看>>
[NOIP2013提高组] CODEVS 3287 火车运输(MST+LCA)
查看>>
Python IO模型
查看>>
DataGridView的行的字体颜色变化
查看>>
局域网内手机访问电脑网站注意几点
查看>>
[Serializable]的应用--注册码的生成,加密和验证
查看>>
Android-多线程AsyncTask
查看>>