Skip to content

Commit

Permalink
Update descriptions of the response format of system.status
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 29, 2015
1 parent 16e0676 commit 81b2ef8
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions reference/1.1.0/commands/system/status/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ For example:
"body" : {
"nodes": {
"192.168.0.10:10031/droonga": {
"live": true
"status": "active"
},
"192.168.0.11:10031/droonga": {
"live": false
"status": "dead"
}
},
"reporter": "192.168.0.10:49707/droonga @ 192.168.0.10:10031/droonga"
Expand All @@ -84,7 +84,7 @@ This returns a hash like following as the response's `body`, with `200` as its `
{
"nodes" : {
"<Identifier of the node 1>" : {
"live" : <Vital status of the node>
"status" : "<Vital status of the node>"
},
"<Identifier of the node 2>" : { ... },
...
Expand All @@ -97,10 +97,23 @@ This returns a hash like following as the response's `body`, with `200` as its `
Keys of the hash are identifiers of nodes defined in the `catalog.json`, with the format: `hostname:port/tag`.
Each value indicates status information of corresponding node, and have following information:

`live`
: A boolean value indicating vital state of the node.
If `true`, the node can process messages, and messages are delivered to it.
Otherwise, the node doesn't process any message for now, because it is down or some reasons.
`status`
: A string indicating vital status of the node.
Possible values are:

* `active`:
The node is working, and in service.
Messages are delivered to it normally.
* `inactive`:
The node is working, but not in service temporarily.
Messages are not delivered to it just in time.
The node is ignored for read-only messages completely.
Messages modifying the database (like `add`) are buffered and delivered to the node after it is back to `active`.
* `dead`:
The node is not working permanently. For example, the service is down.

Those statuses are relatively detected by each node.
For example, two nodes can detect themselves as `active` and detect as `inactive` each other, when they have different role.

`reporter`
: A string indicating who returns the result.
Expand Down

0 comments on commit 81b2ef8

Please sign in to comment.