Reconfigure any fields in a Replica Set configuration
cfg = rs.conf();
cfg.members[1].priority = 2;
rs.reconfig(cfg);
Refer: https://docs.mongodb.com/manual/reference/method/rs.reconfig/
cfg = rs.conf();
cfg.members[1].priority = 2;
rs.reconfig(cfg);
Refer: https://docs.mongodb.com/manual/reference/method/rs.reconfig/
No comments:
Post a Comment