Add current used disk log when load (#25590)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2023-07-17 11:56:35 +08:00 committed by GitHub
parent e4bdde6fd3
commit 7d2b1a6f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -886,7 +886,9 @@ func (loader *segmentLoader) checkSegmentSize(collectionID UniqueID, segmentLoad
zap.Uint64("diskUsageAfterLoad", toMB(usedLocalSizeAfterLoad)),
zap.Uint64("currentUsedMem", toMB(usedMem)),
zap.Uint64("currentAvailableFreeMemory", toMB(currentAvailableMemCount)),
zap.Uint64("currentTotalMemory", toMB(totalMem)))
zap.Uint64("currentTotalMemory", toMB(totalMem)),
zap.Uint64("currentUsedDisk", toMB(uint64(localUsedSize))),
zap.Uint64("currentTotalDisk", toMB(uint64(Params.QueryNodeCfg.DiskCapacityLimit))))
if memLoadingUsage > uint64(float64(totalMem)*Params.QueryNodeCfg.OverloadedMemoryThresholdPercentage) {
return fmt.Errorf("%w, load segment failed, OOM if load, collectionID = %d, MaxSegmentMemUsage = %v MB, concurrency = %d, usedMemAfterLoad = %v MB, currentAvailableMemCount = %v MB, currentTotalMem = %v MB, thresholdFactor = %f",