mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
[Fix][Monitor]Monitor UI not show DisakAvailable and MemoryUsage correctly (#11870)
This commit is contained in:
parent
c3a8dd5ca7
commit
3ca9680b20
@ -35,5 +35,6 @@ public class MasterHeartBeat implements HeartBeat {
|
||||
private double availablePhysicalMemorySize;
|
||||
private double maxCpuloadAvg;
|
||||
private double reservedMemory;
|
||||
private double diskAvailable;
|
||||
private int processId;
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ public class WorkerHeartBeat implements HeartBeat {
|
||||
private double availablePhysicalMemorySize;
|
||||
private double maxCpuloadAvg;
|
||||
private double reservedMemory;
|
||||
private double diskAvailable;
|
||||
private int serverStatus;
|
||||
private int processId;
|
||||
|
||||
|
@ -57,6 +57,8 @@ public class MasterHeartBeatTask extends BaseHeartBeatTask<MasterHeartBeat> {
|
||||
.availablePhysicalMemorySize(OSUtils.availablePhysicalMemorySize())
|
||||
.maxCpuloadAvg(masterConfig.getMaxCpuLoadAvg())
|
||||
.reservedMemory(masterConfig.getReservedMemory())
|
||||
.memoryUsage(OSUtils.memoryUsage())
|
||||
.diskAvailable(OSUtils.diskAvailable())
|
||||
.processId(processId)
|
||||
.build();
|
||||
}
|
||||
|
@ -68,7 +68,9 @@ public class WorkerHeartBeatTask extends BaseHeartBeatTask<WorkerHeartBeat> {
|
||||
.loadAverage(loadAverage)
|
||||
.availablePhysicalMemorySize(availablePhysicalMemorySize)
|
||||
.maxCpuloadAvg(maxCpuLoadAvg)
|
||||
.memoryUsage(OSUtils.memoryUsage())
|
||||
.reservedMemory(reservedMemory)
|
||||
.diskAvailable(OSUtils.diskAvailable())
|
||||
.processId(processId)
|
||||
.workerHostWeight(workerConfig.getHostWeight())
|
||||
.workerWaitingTaskCount(this.workerWaitingTaskCount.get())
|
||||
|
Loading…
Reference in New Issue
Block a user