Skip to content

Commit

Permalink
add todo for the single rocksdb
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Apr 25, 2023
1 parent 383d36d commit 123b743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/schedule/schedulers/hot_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ type balanceSolver struct {
minorDecRatio float64
maxPeerNum int
minHotDegree int
isRaftKV2 bool
// todo: remove this after testing more scene in the single rocksdb
isRaftKV2 bool

firstPriorityV2Ratios *rankV2Ratios
secondPriorityV2Ratios *rankV2Ratios
Expand Down
1 change: 1 addition & 0 deletions pkg/statistics/store_hot_peers_infos.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ func summaryStoresLoadByEngine(
expectLoads[i] = allStoreLoadSum[i] / float64(allStoreCount)
}

// todo: remove some the max value or min value to avoid the effect of extreme value.
expectHistoryLoads := make([][]float64, DimLen)
for i := range allStoreHistoryLoadSum {
expectHistoryLoads[i] = make([]float64, len(allStoreHistoryLoadSum[i]))
Expand Down

0 comments on commit 123b743

Please sign in to comment.