3

在运行 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 值吗?

任何建议将不胜感激。

非常感谢

4

1 回答 1

1

我没有与 munin 合作过,但我知道 Tsung 不能很好地处理多核 CPU。

为了避免从客户端运行大量 Tsung 负载时 Tsung 崩溃,我在 4 核 CPU 上使用了这个解决方法。

<clients>
    <client host="myhostname" use_controller_vm="false" weight="1"/>
    <client host="myhostname" use_controller_vm="false" weight="1"/>
    <client host="myhostname" use_controller_vm="false" weight="1"/>
    <client host="myhostname" use_controller_vm="false" weight="1"/>
</clients>

如您所见,诀窍是为每个可用内核设置一个客户端 Tsung erlang 节点。也许这个技巧也可以解决你的 munin 问题。

于 2012-11-20T21:33:20.577 回答