YUKI Hiroshi
null+****@clear*****
Wed Apr 29 23:07:25 JST 2015
YUKI Hiroshi 2015-04-29 23:07:25 +0900 (Wed, 29 Apr 2015) New Revision: c0d0061384480a10240c5e3eb5773099cf94936d https://github.com/droonga/droonga.org/commit/c0d0061384480a10240c5e3eb5773099cf94936d Message: Add steps to confirm equivalence of replicas Modified files: tutorial/1.1.0/add-replica/index.md Modified: tutorial/1.1.0/add-replica/index.md (+21 -0) =================================================================== --- tutorial/1.1.0/add-replica/index.md 2015-04-29 22:25:00 +0900 (dddfae3) +++ tutorial/1.1.0/add-replica/index.md 2015-04-29 23:07:25 +0900 (14f0fcf) @@ -212,6 +212,27 @@ $ curl "http://node0:10041/droonga/system/status" | jq "." Because the new node `node2` has become a member of the cluster, `droonga-http-server` on each node distributes messages to `node2` also automatically. +Equivalence of all replicas can be confirmed with the command `system.statistics.object.count.per-volume`, like: + +~~~ +(on node0) +$ curl "http://node0:10041/droonga/system/statistics/object/count/per-volume?output\[\]=total" | jq "." +{ + "node0:10031/droonga.000": { + "total": 540 + }, + "node1:10031/droonga.000": { + "total": 540 + }, + "node2:10031/droonga.000": { + "total": 540 + } +} +~~~ + +Those numbers indicates how many objects are stored in each node. +Because all values are same, they replicas are equal to each other. + ## Remove an existing replica node from an existing cluster -------------- next part -------------- HTML����������������������������... Download