mirror of https://github.com/milvus-io/milvus.git
fix: [2.4]Adjust segment loader's memory estimate for intermin indexes (#39508)
issue: https://github.com/milvus-io/milvus/issues/27678 related 2.4 pr: https://github.com/milvus-io/milvus/pull/39508 related 2.5 pr: https://github.com/milvus-io/milvus/pull/39509 related master pr: https://github.com/milvus-io/milvus/pull/39507 Signed-off-by: cqy123456 <qianya.cheng@zilliz.com>pull/39575/head
parent
355dc82822
commit
9848606a82
|
@ -1678,6 +1678,11 @@ func getResourceUsageEstimateOfSegment(schema *schemapb.CollectionSchema, loadIn
|
|||
}
|
||||
} else {
|
||||
shouldCalculateDataSize = true
|
||||
// querynode will generate a (memory type) intermin index for vector type
|
||||
interimIndexEnable := multiplyFactor.enableTempSegmentIndex && !isGrowingMmapEnable() && SupportInterimIndexDataType(fieldSchema.GetDataType())
|
||||
if interimIndexEnable {
|
||||
segmentMemorySize += uint64(float64(binlogSize) * multiplyFactor.tempSegmentIndexFactor)
|
||||
}
|
||||
}
|
||||
|
||||
if shouldCalculateDataSize {
|
||||
|
@ -1692,11 +1697,6 @@ func getResourceUsageEstimateOfSegment(schema *schemapb.CollectionSchema, loadIn
|
|||
} else {
|
||||
segmentDiskSize += uint64(getBinlogDataDiskSize(fieldBinlog))
|
||||
}
|
||||
// querynode will generate a (memory type) intermin index for vector type
|
||||
interimIndexEnable := multiplyFactor.enableTempSegmentIndex && !isGrowingMmapEnable() && SupportInterimIndexDataType(fieldSchema.GetDataType())
|
||||
if interimIndexEnable {
|
||||
segmentMemorySize += uint64(float64(binlogSize) * multiplyFactor.tempSegmentIndexFactor)
|
||||
}
|
||||
}
|
||||
|
||||
if mmapEnabled {
|
||||
|
|
Loading…
Reference in New Issue