shardingState

shardingState

The shardingState command returns true if the mongod instance is a member of a sharded cluster. Run the command using the following syntax:

{ shardingState: 1 }

警告

This command obtains a write lock on the affected database and will block other operations until it has completed; however, the operation is typically short lived.

MongoDB Manual (Index)

关于

生态系统

格式

资源