我可以将 MongoDB 配置为 In-Memory 吗? [英] Can I configure MongoDB to be 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屋!