???????????
???????????MongoDB?У??????????????????????????????????????????????????????MongoDB????????У?????????????????????г????????????????UCloud?????????????7??????????3?????????????????????????????????????????????Σ???????????????secondary?????б???
????????澯
???????MongoDB?У?????????????????????????mongostat????????CPU????棬???????????????????????д??????????ú??????澯????????MongoDB???????????????????????澯??????????????????????????
???????????
???????MongoDB?????????DB????????????????????????DB???????????????????????????????MongoDB DBA??????????????????????????????????????????????????????飬??????????????????????????????????????????????DB?????????????????????????????????????????????????????????????UCloud???????????????????????????????λ???????
????????MongoDB??????
???????MongoDB????????????????????????MongoDB????????????????????url??????????Primary???崻?????????????????????????????url??????£????????????????????????IP?????
????client=MongoClient('mongodb://ucloudbackup:edFO09SkdU@10.9.57.241:27017??10.9.40.112:27017??10.9.35.45:27017')
????MongoDB??????Primary????????д????????????????????????????????????????????????????????????????
????primary?????????????е??????????Primary???
????primaryPreferred????????Primary???Primary??????????????Secondary???
????secondary?????е???????????Secondary???
????secondaryPreferred????????Secondary???Secondary???????????????Primary???
????nearest????????????????
???????????????
???????MongoDB????????????????????????????????????????????????????????????????????????????????????Э????????????????DB??????DB??Secondary????????????????????£?????????????????????θ??????л?????÷???????????DB?л?????DB?????л???????DB??????????μ?Primary?????????????μ?Primary?????rs.remove??????DB???????????MongoDB???????????????????????MongoDB??????????????????????????????????????????????
????1??????????????????磬????????????????????????????????????????????????????????????????????????????μ????????????????????????????????IDC??????????MongoDB??????????????δ????????????綏???
????2?????DB?????DB????????????????????????????????????????DB??IP?????????????????????url?У??????????????????????????????????????????????????DB??????????????????????????????????????????????????????
????MongoDB??MongoDB?????????
????3???????????o????????????????????Mongodb????????е????Secondary?????????μ?Primary??????????????????

????4??????????????????????????MongoDB????????Primary????а?????????DB????????????????url??????DB??IP???????????
????????????????????????UCloud????????????MongoDB?????????????????????е???API???????MongoDB???????????