【问题标题】:Tsung: CPU usage value from munin too highTsung:来自 munin 的 CPU 使用率值太高
【发布时间】:2012-11-21 05:33:20
【问题描述】:

在运行 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.erl 中引用的 CPU 数量的选项@

但是,munin 插件包装器https://github.com/processone/tsung/blob/master/src/tsung_controller/ts_os_mon_munin.erl 上似乎确实有一个 CPU 设置@

以前有人遇到过这种情况吗?无论如何我可以在我的日志文件中返回 munin 值吗?

任何建议将不胜感激。

非常感谢

【问题讨论】:

    标签: erlang load-testing munin tsung


    【解决方案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问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-08
      • 2020-09-01
      • 1970-01-01
      • 2014-08-26
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 2014-07-16
      相关资源
      最近更新 更多