슬레이브 데이터 조회 :
db.getMongo().setReadPref('secondaryPreferred')
레플리케이션 정보 조회 :
db.getReplicationInfo()
레플리케이션 priority 수정 :
cfg = {
_id : "zone02",
members : [
{_id : 0, host : 'mongo1:27017', priority : 3},
{_id : 1, host : 'mongo2:27017', priority : 2},
{_id : 2, host : 'mongo3:27017', priority : 2},
{_id : 3, host : 'mongo4:27017', priority : 2},
{_id : 4, host : 'mongo5:27017', priority : 2},
{_id : 5, host : 'mongo6:27017', priority : 2}
]
}
rs.reconfig(cfg)