mongodb replica sets reconfig and conver a Secondary to an Arbiter
来源:互联网 发布:知乎的帖子怎么删除 编辑:程序博客网 时间:2024/06/06 17:02
- configuration – A document that specifies the configuration of a replica set.
- force – Optional. Specify { force: true } as the force parameter to force the replica set to accept the new configuration even if a majority of the members are not accessible. Use with caution, as this can lead to rollback situations.
Initializes a new replica set configuration. This function will disconnect the shell briefly and forces a reconnection as the replica set renegotiates which node will be primary. As a result, the shell will display an error even if this command succeeds.
rs.reconfig() provides a wrapper around the “replSetReconfig” database command.
rs.reconfig() overwrites the existing replica set configuration. Retrieve the current configuration object with rs.conf(), modify the configuration as needed and then use rs.reconfig() to submit the modified configuration object.
To reconfigure a replica set, use the following sequence of operations:
If you want to force the reconfiguration if a majority of the set isn’t connected to the current member, or you’re issuing the command against a secondary, use the following form:
Warning
Forcing a rs.reconfig() can lead to rollback situations and other difficult to recover from situations. Exercise caution when using this option.这里遇到rollback情况,可能会导致fatal状态,那么replica set就等于失效了,可以拷贝local数据文件,或者所有数据文件进行重建
- mongodb replica sets reconfig and conver a Secondary to an Arbiter
- mongodb replica sets reconfig and conver a Secondary to an Arbiter
- mongodb replica sets功能
- Mongodb Replica Sets部署
- MongoDB Replica Sets
- MongoDB Replica Sets
- MongoDB Replica Sets管理
- MongoDB Replica Sets (复制集)
- MongoDB之Replica Sets + Sharding
- Centos配置MongoDb replica sets
- mongodb集群(Shard+Replica Sets)
- mongodb replica sets搭建及使用
- MongoDB学习整理之Replica Sets安装
- MongoDB学习整理之Replica Sets + Sharding
- Mongodb Replica Sets + Sharding/配置文件启动
- MongoDB 复制集模式Replica Sets
- Simple Automated Backups for MongoDB Replica Sets
- Mongodb的Replica Sets + Sharding Architect
- JDBC日期处理
- java获取远程资源
- VS2008 error LNK2019: 无法解析的外部符号 __imp___vsnprintf,该符号在函数 _StringVPrintfWorkerA@
- Android ViewPager多页面滑动切换以及动画效果
- GET方法和POST方法的区别
- mongodb replica sets reconfig and conver a Secondary to an Arbiter
- 生命的列车
- emacs笔记二: 高级操作
- node.js安装--redhat5
- python学习重温(2)---自动case生成工具之elementtree
- Db2自定义函数
- Dom4j解析xml && json格式转换成String
- 利用VSPD虚拟串口调试串口程序
- CoreData续写