2011-11-18 14 views
3

運行Tsung負載測試時,我正努力讓munin報告工作。 我的設置如下。Tsung:來自munin的CPU使用率過高

網站登臺服務器(staging4):

  • 2個CPU

崇服務器

  • 2個CPU

我的崇服務器有一個SSH隧道來staging4端口4950見下面我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) 

我可能錯了,但我認爲這是因爲我們的分段4服務器有2個CPU,因此得到的CPU%大於100%。 我在崇代碼進行覈對和他們似乎並沒有被設置在監控XML元素引用CPU的數量的選項https://github.com/processone/tsung/blob/master/src/tsung_controller/ts_config.erl

然而,有似乎是在穆寧插件封裝在CPU設置https://github.com/processone/tsung/blob/master/src/tsung_controller/ts_os_mon_munin.erl

有沒有人遇到過這個?無論如何,我可以得到我的日誌文件中返回的慕尼黑值?

任何建議將不勝感激。

非常感謝

回答

1

我還沒有和穆寧工作,但我知道,崇不處理多核CPU非常好。

爲了避免從客戶端運行大量負載時發生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> 

正如你所看到的,關鍵是要建立每個核心提供一個客戶端宗二郎節點。 也許這個技巧也可以解決你的munin問題。