basho/riak_kv — pull request #317 by rzezeski (2012-04-23 04:47:10+00:00)
Title: handoff visibility

Purpose
----------

Visibility into handoff is really poor. The typical method used to
discover handoff information is `riak-admin transfers` but that gives
hardly any useful information, as shown below.

'dev3@127.0.0.1' waiting to handoff 7 partitions
'dev2@127.0.0.1' waiting to handoff 4 partitions
'dev1@127.0.0.1' waiting to handoff 5 partitions

This PR adds visibility transfers/handoff by tracking various stats on
active transfers and displaying this information in a human friendly
way, as shown below.

./dev/dev1/bin/riak-admin transfers
'dev2@127.0.0.1' waiting to handoff 1 partitions
'dev1@127.0.0.1' waiting to handoff 2 partitions

Active Transfers:

transfer type: hinted_handoff
vnode type: riak_kv_vnode
partition: 1096126227998177188652763624537212264741949407232
started: 2012-04-23 03:08:27 [2.02 s ago]
last update: 2012-04-23 03:08:29 [16.97 ms ago]
objects transferred: 5720

2857 Objs/s
dev2@127.0.0.1 =======================> dev3@127.0.0.1
23.59 MB/s

See basho/riak_core#170