Skip to content

Commit

Permalink
enhance: [2.4] Change frequent balancer debug log to rated one (#35749)…
Browse files Browse the repository at this point in the history
… (#35796)

Cherry-pick from master
pr: #35749
"skip balance" log is too frequent in debug level. This PR changes it
into rated on.

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Aug 29, 2024
1 parent 2fc111e commit 8928c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/querycoordv2/checkers/balance_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (b *BalanceChecker) replicasToBalance() []int64 {
hasUnbalancedCollection := false
for _, cid := range loadedCollections {
if b.normalBalanceCollectionsCurrentRound.Contain(cid) {
log.Debug("ScoreBasedBalancer is balancing this collection, skip balancing in this round",
log.RatedDebug(10, "ScoreBasedBalancer is balancing this collection, skip balancing in this round",
zap.Int64("collectionID", cid))
continue
}
Expand Down

0 comments on commit 8928c9d

Please sign in to comment.