我可以将 MongoDB 配置为 In-Memory 吗? [英] Can I configure MongoDB to be In-Memory?

查看:80
本文介绍了我可以将 MongoDB 配置为 In-Memory 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用允许高性能的数据库感兴趣,并且预期需要集群以进行大规模水平扩展.

I am interested in using a database that will allow high performance, with an expected requirement of cluster for a massive horizontal scaling.

我们正在考虑使用 MongoDB,有谁知道我是否可以使用它 InMemory(即在 RAM 中 - 出于性能原因)?

We are looking into using MongoDB, does anyone know if I can use it InMemory (i.e. in the RAM - for performance reasons)?

Tnx

推荐答案

您可以采用的一种性能提升方法是使用 RAM 磁盘

A performance boost approach you can take is to use a RAM disk

例如:

mongod --smallfiles --noprealloc --nojournal --dbpath <ramdisk mounted localtion>

<小时>

另见:

创建 RAM 磁盘 linux:https:///unix.stackexchange.com/questions/66329/creating-a-ram-disk-on-linux/66331#66331

Create RAM Disk linux: https://unix.stackexchange.com/questions/66329/creating-a-ram-disk-on-linux/66331#66331

http://www.phpmoadmin.com/mongodb-in-memory-数据库

这篇关于我可以将 MongoDB 配置为 In-Memory 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆