Mongodb彩信B树图

Mongodb MMS Btree chart

我必须监视 mongodb 实例,但我无法理解 Btree graph.As 我从文档中了解到 Btree 图提供了有关用于数据库操作的索引的信息,显示了索引的次数加载到内存中(命中),加载索引到内存中失败的次数(未命中)。

我们如何知道还剩多少容量?如果我们接近 运行 内存不足以覆盖所有索引,如何在它发生之前获得更新?

来自 MongoDB MMS 文档:

B-tree

These alert conditions refer to the metrics found on the host’s btree chart. To view the chart, see Accessing a Host’s Statistics.

B-tree: accesses is

Sends an alert if the number of accesses to B-tree indexes meets the specified average.

B-tree: hits is

Sends an alert if the number of times a B-tree page was in memory meets the specified average.

B-tree: misses is

Sends an alert if the number of times a B-tree page was not in memory meets the specified average.

因此,如果您配置警报条件 B-tree 'misses',如果页面在指定的平均内存中不存在,则会发出警报,一旦发出此警报,您就可以分配额外的 RAM。要分配多少额外的 RAM 取决于插入的文档数量、文档大小和索引数量。