Add log for getting IndexNode's mertrics (#16747)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2022-04-29 19:07:47 +08:00 committed by GitHub
parent 38280698ff
commit 6440c0dd98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,9 @@ func (nm *NodeManager) ListNode() []UniqueID {
log.Error("get IndexNode metrics info failed", zap.Error(err))
return
}
log.Debug("IndexCoord get IndexNode's metrics success", zap.Int64("nodeID", id),
zap.Int("CPUCoreCount", infos.HardwareInfos.CPUCoreCount), zap.Float64("CPUCoreUsage", infos.HardwareInfos.CPUCoreUsage),
zap.Uint64("Memory", infos.HardwareInfos.Memory), zap.Uint64("MemoryUsage", infos.HardwareInfos.MemoryUsage))
nm.pq.SetMemory(id, infos.HardwareInfos.Memory)
}(&wg, id)
}