fix: [2.4] Use metrics values instead of hardcode mock values (#36783)

Cherry-pick from master
pr: #36782
Resolves #36781

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-10-11 19:49:21 +08:00 committed by GitHub
parent 58b198c785
commit a57626afa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1057,7 +1057,7 @@ func (q *QuotaCenter) getDeleteBufferRowCountFactor() map[int64]float64 {
}
collectionFactor := make(map[int64]float64)
for collID, rowCount := range map[int64]int64{100: 1000} {
for collID, rowCount := range deleteBufferNum {
if rowCount < deleteBufferRowCountLowWaterLevel {
continue
}
@ -1083,7 +1083,7 @@ func (q *QuotaCenter) getDeleteBufferSizeFactor() map[int64]float64 {
}
collectionFactor := make(map[int64]float64)
for collID, rowCount := range map[int64]int64{100: 1000} {
for collID, rowCount := range deleteBufferSize {
if rowCount < deleteBufferRowCountLowWaterLevel {
continue
}