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

发布于 2024-08-25 04:48:58 字数 258 浏览 3 评论 0原文

我在我的服务器上安装了 MongoDB 数据库。我的服务器是 32 位的,我无法很快更改它。

当您在 32 位架构中使用 MongoDB 时,您的数据限制为 2,5Go,如 这篇 MongoDB 博客文章

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

I installed a MongoDB database on my server. My server is in 32Bit and I can't change it soon.

When you use MongoDB in a 32Bit architecture you have a limit of 2,5Go of data, as mentionned in this MongoDB blog post.

The thing is that I have several database. So how can I know if I am close or not to this limit ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ペ泪落弦音 2024-09-01 04:48:58

当您达到限制时,Mongo 将开始抛出断言。如果您查看日志,它将有一堆错误消息(很有帮助)告诉您切换到 64 位计算机。

使用 mongo shell,您可以说:

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

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

Mongo will start throwing assertions when you hit the limit. If you look at the logs, it will have a bunch of error messages (helpfully) telling you to switch to a 64-bit machine.

Using the mongo shell, you can say:

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

to get a general idea of how close to the limit you are. Sizes are in bytes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文