sh.isBalancerRunning()
On this page本页内容
Definition定义
sh.isBalancerRunning()
-
Returns a document describing the status of the balancer.返回描述平衡器状态的文档。Importantmongosh Method
This page documents a
mongosh
method. This is not the documentation for database commands or language-specific drivers, such as Node.js.For the database command, see the
balancerStatus
command.For MongoDB API drivers, refer to the language-specific MongoDB driver documentation.
For the legacy
mongo
shell documentation, refer to the documentation for the corresponding MongoDB Server release:
Output Document输出文档
The following is an example of a document returned by the command:以下是命令返回的文档示例:
{
mode: 'full',
inBalancerRound: false,
numBalancerRounds: Long("1143"),
ok: 1,
'$clusterTime': {
clusterTime: Timestamp({ t: 1639753724, i: 3 }),
signature: {
hash: Binary(Buffer.from("0000000000000000000000000000000000000000", "hex"), 0),
keyId: Long("0")
}
},
operationTime: Timestamp({ t: 1639753724, i: 3 })
}
mode |
|
inBalancerRound | |
numBalancerRounds | |
ok | |
$clusterTime | |
operationTime |