mongodb資料庫即時監控工具motop分享

來源:互聯網
上載者:User

motop

項目下載地址:https://github.com/tart/motop

使用

1. 使用easy_install安裝
# wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
# easy_install motop

2. 源碼安裝
# wget https://github.com/tart/motop/archive/master.zip
# unzip master.zip
# ./setup.py install

3. 協助
# motop -h

4. 監控多台
# motop 192.168.124.50 192.158.124.51

動作

q Quit

p Pause

e Explain the query

k Kill operation using “mongo” executable

K Kill operations older than given seconds using “mongo” executable

r Try to reconnect to disconnected servers

R Try to reconnect to all servers

依賴包

    python 2.6 或以上
    pymongo 2.0 或以上

配置(選項)

設定檔可以建立在/etc/motop.conf。可以有多個配置短,每一節都可以包含以下參數:

address: 伺服器的地址(必需)

username: 登陸使用者名稱

password:登陸使用者密碼

status:顯示狀態(預設開啟)

replicationInfo :顯示複製狀態(預設值:開啟)

replicaSet :顯示複本集的狀態(預設值:開啟)

operations:顯示操作(預設值:開啟)

replicationOperations :不斷展現主和從的複製操作(預設值:開啟)

“DEFAULT”是特殊的部分。本節參數可以設定為預設。

配置執行個體如下:

[MongoDB01]
address=10.42.2.121
replicationOperations=off
 
[MongoDB02]
address=10.42.2.122
 
[MongoDB03]
address=10.42.2.123
 
[MongoDB04]
address=10.42.2.124
username=foo
password=bar

實際使用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.