Which of the following are true of a jumbo chunk in a MongoDB sharded cluster? Check all that apply:
题目选项
- A.Can be split manually when the chunk's range covers only a single shard key value.
- B.Can be split by adding new field(s) to the shard key to make the chunk divisible.
- C.Can be split automatically where the chunk's range covers only a single shard key value.
答案置信度:高
正确答案:B
解析语言:中文
jumbo chunk 之所以不能切分,是因为 chunk 内的文档数超过上限,而它的 range 只覆盖单个分片键值、再切也没有边界。A、C 都不成立:range 只含一个分片键值时无论手动还是自动都无法切分,正因为如此才需要 refineShardKey——给分片键追加后缀字段后,原本不可分的 chunk 因为新字段的区分度而变得可分,所以 B 正确。