Mongodb監控之monogstat,mongodbmonogstat

來源:互聯網
上載者:User

Mongodb監控之monogstat,mongodbmonogstat

環境介紹:
monogdb 2.4.10
命令簡介:查看monogdb活動執行個體的效能狀態

主要參數:
執行mongostat --help
除了命令用法外,還提示了一下關鍵字段
inserts 每秒中插入的數
query   每秒中查收的數
update  每秒中更新數
delete  每秒中刪除的數
那些值的大小,只是一個簡單的參考,不能作為業務繁忙判斷的依據{100條簡單的語句可能比1條複雜的查詢速度還快}

getmore 查詢時,遊標的getmore操作

command 每秒內執行的命令數目

flushes 每秒中重新整理的次數

mapped
vsize
res

這3個參數是記憶體的使用
faults故障
idx miss
index miss,也就是說沒有走索引的比例;
如果值很大,建議查看索引引用狀態
qr|qw
ar|aw

暫時不懂意思

netIn  網路進來流量(位)
netOut 網路出去流量(位)
因為目前好多架構資料庫都處於區域網路環境,基本都是千兆流量
conn 當前串連數
set  複本集的名字
repl 叢集的類型
PRI - primary (master)
SEC - secondary
REC - recovering
UNK - unknown
SLV - slave
RTR - mongos process ("router")

未完待續--

相關文章

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.