数据库 - Mongo 的启动参数怎么设置比较好?
巴扎黑
巴扎黑 2017-04-24 09:11:23
0
1
505

本人是做网络游戏开发的, 因为开发人员少, 在mysql和mongo之间, 就选了mongo因为在开发过程中不用维护表的结构而徒增工作量.
网游有两种数据库, 一种是作为玩家数据的存储, 另一种是单纯的日志.
存储玩家数据的库, 第一是一定要稳定, 其次再追求读取,存储,修改的效率.
日志库, 单纯的存储日志, 只需要查询和统计的时候方便就好.

我是第一次使用mongo, 所以对于启动参数不太熟悉, 下面三个是除了指定数据地址以外我使用的启动参数.
logappend=true
directoryperdb=true
journal=true

希望大家能给予一些关于启动参数方面的优化方案, 非常感谢.

巴扎黑
巴扎黑

reply all(1)
左手右手慢动作

It should not only be a matter of parameter optimization. It is best to establish a cluster for operational data. When I used it before, a single machine crashed and data recovery was troublesome. I don’t know what happened now.
Later, after establishing a 3-backup cluster, it became very stable and basically no crash problems occurred. Of course, my situation is relatively simple.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!