mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Adjust segment loader's memory estimate for intermin indexes (#39507)
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>
This commit is contained in:
parent
76959244ef
commit
1b8a837758
@ -1536,6 +1536,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 {
|
||||
@ -1550,11 +1555,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…
x
Reference in New Issue
Block a user