翻译或纠错本页面
- Reference >
- Database Commands >
- 分片命令
分片命令¶
注解
For details on specific commands, including syntax and examples, click on the specific command to go to its reference page.
名字 |
描述 |
|---|---|
| flushRouterConfig | Forces an update to the cluster metadata cached by a mongos. |
| addShard | 在 sharded cluster 中增加一个 shard. |
| balancerStart | Starts a balancer thread. |
| balancerStatus | Returns information on the balancer status. |
| balancerStop | Stops the balancer thread. |
| cleanupOrphaned | 移除不属于某个分片却存储在这个分片的数据. |
| checkShardingIndex | 验证片键上索引有效性的内部命令. |
| enableSharding | 对某个数据库开启分片 |
| listShards | 返回配置服务器中的分片列表 |
| removeShard | 开始删除一个分片的过程. |
| getShardMap | 报告集群状态的内部命令. |
| getShardVersion | Internal command that returns the config server version. |
| mergeChunks | 可以合并在一个分片上的数据块. |
| setShardVersion | 设置 配置服务器 上数据块版本的内部命令. |
| shardCollection | Enables the sharding functionality for a collection, allowing the collection to be sharded. |
| shardingState | Reports whether the mongod is a member of a sharded cluster. |
| unsetSharding | 在MongoDB部署中影响实例间连接的内部命令. |
| split | 创建一个新的 chunk. |
| splitChunk | 分裂数据块的内部命令,使用 sh.splitFind() 和 sh.splitAt() 进行替代. |
| splitVector | 决定分裂点的内部命令. |
| medianKey | 废弃非内部命令,参见 splitVector. |
| moveChunk | 在分片间迁移数据块的内部命令. |
| movePrimary | 在将某个分片从集群中删除时,重新设置 primary shard . |
| isdbgrid | Verifies that a process is a mongos. |
| addShardToZone | Associates a shard with a zone. Supports configuring zones in sharded clusters. |
| removeShardFromZone | Removes the association between a shard and a zone. Supports configuring zones in sharded clusters. |
| updateZoneKeyRange | Adds or removes the association between a range of sharded data and a zone. Supports configuring zones in sharded clusters. |
