It is better for the peer with the smallest lag(fall behind index) to become the transferee. #111
Closed
Description
Hi, @RongtongJin
In method DLedgerServer#checkPreferredLeader()
, The first peer in the list preferredLeaderIds
that meets the condition is determined to be the leader transferee, as show below:
I think, the peer with the smallest lag(fall behind index) be the transferee
, which may be better.