mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
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:
parent
58b198c785
commit
a57626afa0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user