Add node resource error, replace ping with about

This commit is contained in:
Ingo Oppermann
2023-07-25 17:17:20 +02:00
parent 81581091e8
commit d74165a90a
9 changed files with 182 additions and 60 deletions

View File

@@ -1317,6 +1317,7 @@ type ClusterNodeResources struct {
CPULimit float64 // Defined CPU load limit, 0-100*ncpu
Mem uint64 // Currently used memory in bytes
MemLimit uint64 // Defined memory limit in bytes
Error error
}
type ClusterNode struct {
@@ -1419,6 +1420,7 @@ func (c *cluster) About() (ClusterAbout, error) {
CPULimit: nodeAbout.Resources.CPULimit,
Mem: nodeAbout.Resources.Mem,
MemLimit: nodeAbout.Resources.MemLimit,
Error: nodeAbout.Resources.Error,
},
}