|
1、mongoDB部署对硬件有哪些要求?
答:下载了最新版本,查看其中的文档,对于硬件最小配置,没有像微软的软件一样,列出详细的要求。
我的理解是,只要你的操作系统能跑起来,我mongoDB就能跑起来,而且占用的资源不是特别多。
下面只是官方的建议:
Fast CPU clock speed is helpful.Many cores helps but does not provide a high level of marginal return, so don't spend money on them. (This is both a consequence of the design of the program and also that memory bandwidth can be a limiter; there isn't necessarily a lot of computation happening inside a database).NUMA is not very helpful as memory access is not very localized in a database. Thus non-NUMA is recommended; or configure NUMA as detailed elsewhere in this document.RAM is good.SSD is good. We have had good results and have seen good price/performance with SATA SSDs; the (typically) more upscale PCI SSDs work fine too.Commodity (SATA) spinning drives are often a good option as the speed increase for random I/O for more expensive drives is not that dramatic (only on the order of 2x) – spending that money on SSDs or RAM may be more effective.
下面简单翻译一下:
越快的CPU越好
多核有帮助,但不会提供高水平的投入产出,所以不要在这上面花钱.
NUMA没有什么大的帮助,因为内存访问不同数据库的定位重点
RAM很好
SSD很好
SATA建议
2、MongoDB与传统数据库相比,孰优孰劣?
这个问题跟另一个活动的一个问题一样。
优势:
快速,通常来说,它比一般的关系型数据库快5倍左右
很高的可扩展性 – 轻轻松松就可实现PB级的存储
有一个很好的模式
有很完善的Java API
存储格式是Json的,这对Java来说非常好处理,对javascirpt亦然。
运维起来非常方便,你不用专门为它安排一个管理员。
它有一个非常活跃的社区他的版本控制非常清楚。
有好的前景,MongoDB 背后的公司(10gen)已经准备好了明天在 MongoDB 上面的投入的资金。
上述回答是MongoDB的优势与劣势,这些都是针对传统数据库而言。它的优势必须是传统数据库的劣势,而它的劣势,则为传统数据库的优势。
3、MongoDB数据存储可靠性如何?
答:当开始的时候,由于内在的bug,可靠性不是很好,会丢失数据,无法读写等。
这些从目前的最新版本2.2.1开始,已经有了显著的改善。
|
|