droonga-system-status reports current status of a Droonga cluster.
For example, if there is a Droonga Engine node 192.168.100.50 and you are logged in to a computer 192.168.100.10 in the same network segment, the command line to report status of the cluster is:
(on 192.168.100.10)
$ droonga-system-status --host 192.168.100.50 --receiver-host 192.168.100.10 --pretty
{
"nodes": {
"node0:10031/droonga": {
"status": "active"
},
"node1:10031/droonga": {
"status": "active"
}
},
"reporter": "node0:55329/droonga @ node0:10031/droonga"
}
This command is just a shorthand of droonga-request with a message with the type system.status.
The result produced by the following command line almost equals to the one of above:
(on 192.168.100.10)
$ echo '{"type":"system.status"}' |
droonga-request --report-request --host 192.168.100.50 --receiver-host 192.168.100.10
Request: {
"type": "system.status",
"id": "1430963525.9829412",
"date": "2015-05-07T02:39:50.334377Z",
"dataset": "Default"
}
Elapsed time: 0.00900742
{
"inReplyTo": "1430963525.9829412",
"statusCode": 200,
"type": "system.status.result",
"body": {
"nodes": {
"node0:10031/droonga": {
"status": "active"
},
"node1:10031/droonga": {
"status": "active"
}
},
"reporter": "node0:55329/droonga @ node0:10031/droonga"
}
}
See also the reference of the system.status command.
--pretty--host=NAME--port=PORT10031 by default.--tag=TAGdroonga by default.--dataset=NAMEDefault by default.--receiver-host=NAME--target-role=ROLEservice-provider:
The message is processed by service provider nodes in the cluster.
For absorb-source nodes and absrob-destination nodes, the message will be dispatched later.absorb-source:
The message is processed by absorb-source nodes in the cluster.
For service provider nodes and absrob-destination nodes, the message is never dispatched.absorb-destination:
The message is processed by absorb-destination nodes in the cluster.
For service provider nodes and absrob-source nodes, the message is never dispatched.any:
The message is always processed by the node specified via the option --host.any by default.
--timeout=SECONDS3 by default.-h, --helpThis is installed as a part of a rubygems package droonga-client.
# gem install droonga-client