简体   繁体   中英

[mongodb]about shard and many collections

My situation is:

  1. I have a mongodb cluster with sharding
  2. I considered that sharing is effecting for one collection with specified shard key
  3. I insert a new collection through mongos

My question is:

Where and why the new collection stored? If one shared is full, should the new collection auto store in another?

Thank you!

我已经解决了;如果您插入一个未分片的集合,它将存储在默认情况下第一个分片的主分片中,如果主分片已满,则新集合将不会存储在另一个分片中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM