enhance: [2.4] Change frequent balancer debug log to rated one (#35749) (#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 <congqi.xia@zilliz.com>
pull/35817/head
congqixia 2024-08-29 12:31:00 +08:00 committed by GitHub
parent 2fc111eb10
commit 8928c9d570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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
}