Make MDS evaluates the overload situation with the same criterion
Currently, the prep_rebalancer requires the mds_load of itself
being greater than average level mds_bal_min_rebalance percent
to be counted as exporter, however, for the other mds, as long
as their mdsload is greater than average level, they could be
consider as exporter. This inconsistent standard would cause
gray area in the rebalance activity: one may expect the other
do some work, but it didn't. With the increasing amount of mds,
this inconsistent decision would get worse and affects the
optimization effect of rebalancer.
Signed-off-by: Jianyu Li <joannyli@tencent.com>
(cherry picked from commit
9a276c2733415f41d54524db20a9dd8eb62359bd)
Conflicts:
src/messages/MHeartbeat.h