0
以下是否適用於MongoDB分片?1個分片服務器是否可以設置副本而其他分區不可以
sh.addShard("shard01.local:27017");
sh.addShard("shard02.local:27017");
sh.addShard("rs0/shard03.local:27017,shard04.local:27017,shard05.local:27017");
含義,我設置了3個碎片,但只有第三個碎片是複製集。它不工作,因爲configsrv不理解rs0。
MongoDB是否處理這個問題?或者如果其中一個分片是副本集,則所有分片都需要處於副本集中。