argamanza
5/20/2019 - 10:49 AM

replicaset.txt

config = { _id: "pyqod_rs", members:[
            { _id: 0, host : "10.0.0.175:27017"},
            { _id: 1, host : "10.0.0.254:27017"},
            { _id: 2, host : "10.0.0.117:27017"} ]
};

rs.initiate(config);
rs.status();