mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 22:31:55 +00:00
update fair
This commit is contained in:
parent
46c2dc6837
commit
5746d2d830
@ -397,7 +397,9 @@ func (scheduler *SchedulerFair) UpdateQuota() {
|
||||
quota.Memory += ((requests[queue].Memory * base) / requests[queue].NumberGPU) / 1000
|
||||
}
|
||||
/* left more and more resource */
|
||||
availableGPU = availableGPU % per
|
||||
if per != 0 {
|
||||
availableGPU = availableGPU % per
|
||||
}
|
||||
if availableGPU > 0 {
|
||||
for _, queue := range candidates {
|
||||
quota := scheduler.queuesQuota[queue]
|
||||
|
Loading…
Reference in New Issue
Block a user