发布于 2015-09-14 15:09:48 | 113 次阅读 | 评论: 0 | 来源: 网络整理

splitChunk

splitChunk is an internal command. Use the sh.splitFind() and sh.splitAt() functions in the mongo shell to access this functionality.

警告

Be careful when splitting data in a sharded collection to create new chunks. When you shard a collection that has existing data, MongoDB automatically creates chunks to evenly distribute the collection. To effectively split data in a sharded you must consider the number of documents in a chunk and the average document size to create a uniform chunk size. When chunks have irregular sizes, shards may have an equal number of chunks but have very different data sizes. Avoid creating splits that lead to a collection with differently sized chunks.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务