mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: don't use logical resource for metrics of quota center on streaming node (#44613)
issue: #44599 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
e6640594fd
commit
a110d8cc49
@ -254,21 +254,11 @@ func getSystemInfoMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest,
|
||||
usedMem := hardware.GetUsedMemoryCount()
|
||||
totalMem := hardware.GetMemoryCount()
|
||||
|
||||
// TieredEvictionEnabled is enabled, use the logical resource memory size
|
||||
if paramtable.Get().QueryNodeCfg.TieredEvictionEnabled.GetAsBool() {
|
||||
usedMem = node.manager.Segment.GetLogicalResource().MemorySize
|
||||
}
|
||||
|
||||
usedDiskGB, totalDiskGB, err := hardware.GetDiskUsage(paramtable.Get().LocalStorageCfg.Path.GetValue())
|
||||
if err != nil {
|
||||
log.Ctx(ctx).Warn("get disk usage failed", zap.Error(err))
|
||||
}
|
||||
|
||||
// TieredEvictionEnabled is enabled, use the logical resource disk size
|
||||
if paramtable.Get().QueryNodeCfg.TieredEvictionEnabled.GetAsBool() {
|
||||
usedDiskGB = float64(node.manager.Segment.GetLogicalResource().DiskSize) / 1e9
|
||||
}
|
||||
|
||||
ioWait, err := hardware.GetIOWait()
|
||||
if err != nil {
|
||||
log.Ctx(ctx).Warn("get iowait failed", zap.Error(err))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user