Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongodb comes with monitoring mongostat numerical description

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Insert: number of inserts in a second

Query: the number of queries in a second

Update: number of updates in a second

Delete: number of deletions in a second

Getmore: getmore operation of cursor when querying

Command: the number of commands executed in a second

Flushes: the number of flush in a second is usually 0, or 1. By calculating the interval between two 1s, you can roughly understand how long it takes to flush. Flush costs a lot, and if you have frequent flush, you may have to find out why.

Mapped:vsize: res: these three are the same as you can see with top. Mapped and vsize generally do not change much. Res will rise slowly. If res often drops suddenly, check to see if any other programs are eating memory.

Faults: under high pressure, this number is often not zero. If it is often not 0, it is time to add memory.

Locked: MongoDB is a read-write lock, which refers to the percentage of time that the write lock resides. If this number is too large (often more than 10%), something is wrong.

Dx miss: a very important parameter. Normally, all queries should pass the index, that is, idx miss is 0. If the value here is large, is there a lack of index?

Qr | qw: queue lengths for clients waiting (read | write)

Ar | aw: active clients (read | write)

If these two values are large, then DB is blocked and DB is not as fast as the request. See if there are expensive slow queries. If everything is normal and the load is really heavy, you need to add the machine.

NetIn: network traffic in-bits

NetOut: network traffic out-bits

Network bandwidth pressure

Conn: MongoDB creates a thread for each connection, and thread creation and release also have overhead. Try not to let this number be too large.

Repl: current status of the server

M-master

SEC-secondary

REC-recovering

UNK-unknown

SLV-slave

Time: current Tim

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report