Mongodb MMS Btree图表

时间:2015-05-27 00:01:05

标签: mongodb mongodb-mms

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

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

1 个答案:

答案 0 :(得分:0)

来自MongoDB MMS文档:

  

B树

     

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

     

B-tree:访问是

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

B-tree:命中

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

B-tree:遗失是

     AdvertiseSettings.Builder settingBuilder = new AdvertiseSettings.Builder();
     settingBuilder.setConnectable(true);

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