mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-06 22:01:55 +00:00
update fair
This commit is contained in:
parent
aae0e87479
commit
49350b7b6d
@ -381,6 +381,11 @@ func (scheduler *SchedulerFair) UpdateQuota() {
|
||||
}
|
||||
weight := InstanceOfGroupManager().groups[queue].Weight
|
||||
quota := scheduler.queuesQuota[queue]
|
||||
|
||||
if quota.NumberGPU+per*weight > requests[queue].NumberGPU {
|
||||
weight = requests[queue].NumberGPU / (quota.NumberGPU + per)
|
||||
}
|
||||
|
||||
quota.NumberGPU += per * weight
|
||||
availableGPU -= per * weight
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user