Consider the following scenarios for reconfiguration of a replica set and indicate which are accurate: Check all that apply:
题目选项
- A.Reconfiguration of a replica set can be done via a MongoDB Driver.
- B.Reconfiguration can be done online without restart using the rs.reconfig() in a Mongo Shell connected to the primary node.
- C.Reconfiguration requires a restart of the primary node.
答案置信度:中
正确答案:B
解析语言:中文
重配置是联机操作:连到主节点后用 rs.reconfig() 提交新配置即可,不需要重启任何节点,B 正确。C 明显错误(不需要重启主节点);A 不准确——重配置属于管理操作,驱动并没有提供副本集重配置的 API(只能通过 shell 或手工下发 replSetReconfig 命令)。