1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 14:21:55 +00:00

update fair

This commit is contained in:
Newnius 2020-05-28 14:26:24 +08:00
parent 10a46937c9
commit 72c1a40e33

View File

@ -326,7 +326,7 @@ func (scheduler *SchedulerFair) UpdateQuota() {
availableGPU := pool.TotalGPU - usingGPU - allocatedGPU/100 availableGPU := pool.TotalGPU - usingGPU - allocatedGPU/100
availableCPU := pool.TotalCPU - usingCPU - allocatedCPU/100 availableCPU := pool.TotalCPU - usingCPU - allocatedCPU/100
availableMemory := pool.TotalMemory - usingMemory - allocatedMemory //availableMemory := pool.TotalMemory - usingMemory - allocatedMemory
/* <0 means some nodes exited */ /* <0 means some nodes exited */
if availableGPU <= 0 { if availableGPU <= 0 {
return return