public interface BalancePolicy
Jan 20, 2021
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getHighWaterMarkSlotFollowerNums(int average) |
int |
getHighWaterMarkSlotLeaderNums(int average) |
int |
getLowWaterMarkSlotFollowerNums(int average)
Gets get low water mark of follower slot nums. low watermark means the threshold we could
endure with, that once the follower slot numbers on a data-server is under the low water mark,
we need to rebalance the slot-table
|
int |
getLowWaterMarkSlotLeaderNums(int average)
Gets get low water mark slot leader nums. low watermark means the threshold we could endure
with, that once the slot leader numbers on a data-server is under the low water mark, we need
to rebalance the slot-table
|
int |
getMaxMoveFollowerSlots()
Gets get max move follower slots. max move means the maximum number of slots' followers we are
good to migrate per balance time
|
int |
getMaxMoveLeaderSlots()
Gets get max move leader slots. max move means the maximum number of slots' leader we are good
to migrate per balance time
|
int getLowWaterMarkSlotLeaderNums(int average)
average - the averageint getHighWaterMarkSlotLeaderNums(int average)
int getLowWaterMarkSlotFollowerNums(int average)
average - the averageint getHighWaterMarkSlotFollowerNums(int average)
int getMaxMoveLeaderSlots()
int getMaxMoveFollowerSlots()
Copyright © 2023 The Ant Financial. All rights reserved.