52. In order to route requests to the correct shards, mongos must know where each of the chunks reside in the sharded cluster. mongos gets this chunk metadata from: Choose the best answer:
题目选项
- A.the config servers
- B.the mongod.log file
- C.the journal
- D.the shards
- E.another mongos process
答案置信度:高
正确答案:A
解析语言:中文
每个 chunk 的范围及其所在分片记录在 config server 的 config 数据库中,mongos 启动与运行期间从 config server 读取并缓存这些元数据来完成路由。日志、journal 不参与路由,分片自身也不知道其它分片的数据分布,另一个 mongos 也只是同样从 config server 获取信息。