1

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

我们怎么知道我们还剩下多少容量?如果我们即将耗尽内存来覆盖所有索引,如何在更新发生之前获得更新?

4

1 回答 1

0

来自 MongoDB MMS 文档:

B树

这些警报条件是指在主机的 btree 图表上找到的指标。要查看图表,请参阅访问主机的统计信息。

B树:访问是

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

B-tree:命中是

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

B树:未命中是

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 取决于要插入的文档数量、文档大小和索引数量。

于 2015-05-27T04:31:08.343 回答