In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I would like to talk to you about the significance of MONGODB serverStatus to monitoring. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can gain something according to this article.
Recently, I have heard some ambiguity in the understanding of MONGODB. I think that the content of MONGODB database is relatively small, and there is nothing worthy of in-depth study. it is true that compared with many database MONGODB, it seems simple, but any technology has its particularity. If it is only superficial use and use, there may be no problem, but after the problem is encountered, how to solve it becomes a problem, whether to be Bian Que or Bian Que's brothers. Or a quack, all in your own mind.
For MONGODB monitoring, it is very meaningful to obtain useful information serverStatus
In fact, if we want to manage a large number of MONGODB, we need to collect the status information of MONGODB system.
For example, if we look at the changes in the number of asserted asserts, such as warning and user, we need to observe and query the mongodb log after an obvious increment for a certain period of time.
At the same time, for MONGODB connection information statistics, active connections, the number of connections that can continue to be allocated and other information.
After these basic information, we pay more attention to the performance information, such as locks. Although MONGODB is a NOSQL database, there will actually be lock-related situations, especially when multi-document transactions are supported after the new version.
You can check the globalLock time in db.serverStatus () in mongdb. If the total has a number, it means that a lock has been requisitioned and multiple resources are waiting for the lock, if the number continues to rise. If you want a more detailed analysis, you can analyze which aspect of readers or writers caused the related requisition waiting.
Database, oplog, and collection locks are available in db.serverStatus (). Locks here you can follow the changes in the number of relevant collection, and if there are fluctuations, you can pay attention to the increase in the number of related collection locks.
On the other hand, it also shows that it is possible to adjust and change the design when designing the schema of MONGODB.
Among them, a large chunk of serverStatus is related to wiredTiger, and the MMAPv1 storage engine is no longer the focus of MONGODB or will be cancelled in the future. If we are paying attention to the memory problem of MONGODB, we need to pay attention to the contents of writedTiger Cache.
For example, by comparing the values of bytes currently in the cache and bytes dirty in the cache cumulative, we can see whether it is necessary to adjust the checkpoint mentioned earlier, and if the proportion of dirty data is relatively high for a long time, it is indeed necessary to consider the relevant.
adjustment。
For example, if you count the relationship between the operations of operation per second and the commands executed, you need the following two parameters to extract from db.serverStatus
If you think that a certain technology is simple, but in fact there is no introduction, if you want to deepen your knowledge, the more you learn, the more you feel that you will not know it. For example, whether the wiretiger database engine is the storage mode of b+tree or lsm tree, in fact, both of them can be used as the storage mode of mongodb collection, then the latter question is that kind of storage method is more efficient, that kind of storage mode should be used in that case, etc., so ask me, do you know some technology? Sometimes I dare not say yes.
After reading the above, do you have any further understanding of the significance of MONGODB serverStatus to monitoring? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.