代码之家  ›  专栏  ›  技术社区  ›  shingara

如何知道我的MongoDB数据库开销何时达到极限?

  •  0
  • shingara  · 技术社区  · 16 年前

    我在服务器上安装了MongoDB数据库。我的服务器是32位的,我不能很快改变它。

    在32位体系结构中使用MongoDB时,数据量限制为2,5Go,如中所述 this MongoDB blog post

    问题是我有几个数据库。那么我怎么知道我是否接近这个极限呢?

    1 回复  |  直到 14 年前
        1
  •  5
  •   kris    16 年前

    使用mongo shell,您可以说:

    > use admin
    > db.runCommand({listDatabases : 1})
    

    了解你离极限有多近。大小以字节为单位。