发布于 2015-09-14 14:56:35 | 183 次阅读 | 评论: 0 | 来源: 网络整理

sh.moveChunk(collection, query, destination)
参数:
  • collection (string) – Specify the sharded collection containing the chunk to migrate.
  • query – Specify a query to identify documents in a specific chunk. Typically specify the shard key for a document as the query.
  • destination (string) – Specify the name of the shard that you wish to move the designated chunk to.

Moves the chunk containing the documents specified by the query to the shard described by destination.

This function provides a wrapper around the moveChunk. In most circumstances, allow the balancer to automatically migrate chunks, and avoid calling sh.moveChunk() directly.

也可以参考

moveChunk” and “分片” for more information.

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

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