Mongo 샤딩
08 Apr 2020mongo admin -u admin -p admin –host 192.168.66.66 –port 0000
use nosqltest
balancing 끄기
sh.disableBalancing(“nosqltest.tb_log”)
shard key: { "_id" : "hashed" }
unique: false
balancing: false
chunks:
SHARD1 1
SHARD2 1
샤딩되어있는지 확인 및 사용량
db.getCollection(‘tb_log’).getShardDistribution()
sh.status()