On this page本页内容
mongosh
mongosh
中的分片方法sh.abortReshardCollection() |
|
sh.addShard() | |
sh.addShardTag() | sh.addShardToZone() .sh.addShardToZone() 。 |
sh.addShardToZone() | |
sh.addTagRange() | sh.updateZoneKeyRange() .sh.updateZoneKeyRange() 。 |
sh.balancerCollectionStatus() |
|
sh.commitReshardCollection() |
|
sh.disableBalancing() | |
sh.enableBalancing() | sh.disableBalancing() .sh.disableBalancing() 禁用了分片集合平衡器进程,则激活该进程。 |
sh.disableAutoSplit() | |
sh.enableAutoSplit() | |
sh.enableSharding() | |
sh.getBalancerHost() | |
sh.getBalancerState() | |
sh.removeTagRange() | sh.removeRangeFromZone() .sh.removeRangeFromZone() 。 |
sh.removeRangeFromZone() | |
sh.help() | sh methods.sh 方法的帮助文本。 |
sh.isBalancerRunning() | |
sh.moveChunk() | |
sh.removeShardTag() | sh.removeShardFromZone() .sh.removeShardFromZone() 。 |
sh.removeShardFromZone() | |
sh.reshardCollection() |
|
sh.setBalancerState() | |
sh.shardCollection() | |
sh.splitAt() | |
sh.splitFind() | |
sh.startBalancer() | |
sh.status() | db.printShardingStatus() .db.printShardingStatus() 。 |
sh.stopBalancer() | |
sh.waitForBalancer() | |
sh.waitForBalancerOff() | |
sh.waitForPingChange() | mongos in the sharded cluster.mongos 的ping状态发生变化。 |
sh.updateZoneKeyRange() | |
convertShardKeyToHashed() |
The following database commands support sharded clusters.以下数据库命令支持分片集群。
abortReshardCollection |
|
addShard | |
addShardToZone | |
balancerCollectionStatus |
|
balancerStart | |
balancerStatus | |
balancerStop | |
checkShardingIndex | |
clearJumboFlag | jumbo flag for a chunk.jumbo 标志。 |
cleanupOrphaned | |
cleanupReshardCollection |
|
commitReshardCollection |
|
enableSharding | |
flushRouterConfig | mongod /mongos instance to update its cached routing metadata.mongod /mongos 实例更新其缓存的路由元数据。 |
getShardMap | |
getShardVersion | |
isdbgrid | mongos .mongos 。 |
listShards | |
medianKey | splitVector .splitVector 。 |
moveChunk | |
movePrimary | |
mergeChunks | |
removeShard | |
removeShardFromZone | |
reshardCollection |
|
setShardVersion | |
shardCollection | |
shardingState | mongod is a member of a sharded cluster.mongod 是否为分片群集的成员。 |
split | |
splitVector | |
unsetSharding | |
updateZoneKeyRange |
local
database that MongoDB uses to store sharded cluster metadata.local
数据库内容的完整文档。