在运行 Tsung 负载测试时,我正在努力让 munin 报告工作。我的设置如下。
网站登台服务器(staging4):
- 2 个 CPU
Tsung 服务器
- 2 个 CPU
我的 Tsung 服务器在端口 4950 上有一个到 staging4 的 SSH 隧道,请参阅下面的 tsung.xml 配置:
<monitoring>
<monitor host="localhost" type="munin">
<munin port="4950" />
</monitor>
</monitoring>
当我开始负载测试时,我每 10 秒收到以下错误消息:
=INFO REPORT==== 16-Nov-2011::16:04:09 ===
ts_os_mon_munin:(4:<0.72.0>) CPU usage value from munin too high, skip (host "ip-10-48-177-212.housetrip.com" , cpu 8761644.1)
我可能错了,但我认为这是因为我们的 staging 4 服务器有 2 个 CPU,因此产生的 CPU % 大于 100%。我检查了 Tsung 代码,它们似乎不是设置监控 XML 元素https://github.com/processone/tsung/blob/master/src/tsung_controller/ts_config 中引用的 CPU 数量的选项。错误
但是,munin 插件包装器上似乎确实有 CPU 设置https://github.com/processone/tsung/blob/master/src/tsung_controller/ts_os_mon_munin.erl
有没有人遇到过这个?无论如何我可以获得要在我的日志文件中返回的 munin 值吗?
任何建议将不胜感激。
非常感谢