-
配置文件查看全部
-
不错查看全部
-
读默认指向主节点,在数据时效要求不高,比如日志、档案等读取,也可以指向从节点,实现读写分离,分担主节点压力,就是所谓的读写分离查看全部
-
两类节点 数据节点:用来存储数据,充当主从节点 投票节点:负责选举,不存储数据,不能充当主从节点查看全部
-
rs.status() rs.conf() rs.stepDown(500) use admin db.shutdownServer() ------------------ create replcaSet 1.start all mongod with same replSetName 2.mongod --port 28001 3.rs.initiate() 4.rs.add('host:port') 5.rs is ok,use us.status() to show() the status if you want read data from the secondary replset,use rs.slaveOk() or I find it useful to put the default configuration in ~/.mongorc.js and custom configurations in replStart.js or adminStart.js or whatever查看全部
-
不支持只复制指定库查看全部
-
^_^查看全部
举报
0/150
提交
取消