MongoDB分片集群 Shard Cluster( 四 )


47017
shard2:PRIMARY> db.rpp_resume_datas.find(){ "_id" : ObjectId("5f818fa9d5fb279dbd7028f2"), "name" : "test1", "salary" : "3222.95" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f3"), "name" : "test2", "salary" : "12116.39" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f7"), "name" : "test6", "salary" : "8448.45" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f8"), "name" : "test7", "salary" : "11397.26" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f9"), "name" : "test8", "salary" : "2285.39" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fb"), "name" : "test10", "salary" : "12548.81" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fc"), "name" : "test11", "salary" : "15763.79" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fd"), "name" : "test12", "salary" : "5284.59" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fe"), "name" : "test13", "salary" : "12727.03" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028ff"), "name" : "test14", "salary" : "16147.36" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702900"), "name" : "test15", "salary" : "6856.62" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702901"), "name" : "test16", "salary" : "8630.26" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702902"), "name" : "test17", "salary" : "18266.78" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702903"), "name" : "test18", "salary" : "2521.55" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702904"), "name" : "test19", "salary" : "15168.43" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702905"), "name" : "test20", "salary" : "17051.43" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702906"), "name" : "test21", "salary" : "9859.60" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702907"), "name" : "test22", "salary" : "5442.15" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702908"), "name" : "test23", "salary" : "801.52" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702909"), "name" : "test24", "salary" : "13727.49" }Type "it" for moreshard2:PRIMARY>
47018
shard2:SECONDARY> db.rpp_resume_datas.find(){ "_id" : ObjectId("5f818fa9d5fb279dbd7028f2"), "name" : "test1", "salary" : "3222.95" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f3"), "name" : "test2", "salary" : "12116.39" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f7"), "name" : "test6", "salary" : "8448.45" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f8"), "name" : "test7", "salary" : "11397.26" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028f9"), "name" : "test8", "salary" : "2285.39" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fc"), "name" : "test11", "salary" : "15763.79" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fb"), "name" : "test10", "salary" : "12548.81" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fd"), "name" : "test12", "salary" : "5284.59" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702900"), "name" : "test15", "salary" : "6856.62" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028fe"), "name" : "test13", "salary" : "12727.03" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702902"), "name" : "test17", "salary" : "18266.78" }{ "_id" : ObjectId("5f818fa9d5fb279dbd7028ff"), "name" : "test14", "salary" : "16147.36" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702901"), "name" : "test16", "salary" : "8630.26" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702903"), "name" : "test18", "salary" : "2521.55" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702904"), "name" : "test19", "salary" : "15168.43" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702908"), "name" : "test23", "salary" : "801.52" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702906"), "name" : "test21", "salary" : "9859.60" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702909"), "name" : "test24", "salary" : "13727.49" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702905"), "name" : "test20", "salary" : "17051.43" }{ "_id" : ObjectId("5f818fa9d5fb279dbd702907"), "name" : "test22", "salary" : "5442.15" }Type "it" for moreshard2:SECONDARY>