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
692d316c3f
commit
7cd25c9022
@ -383,9 +383,11 @@ func (scheduler *SchedulerFair) UpdateQuota() {
|
||||
quota := scheduler.queuesQuota[queue]
|
||||
|
||||
/* if allocate is more than request, reduce weight */
|
||||
log.Info(quota.NumberGPU, per, weight, requests[queue].NumberGPU)
|
||||
if quota.NumberGPU+per*weight > requests[queue].NumberGPU*1000 {
|
||||
weight = (requests[queue].NumberGPU*1000 - quota.NumberGPU + per - 1) / per
|
||||
}
|
||||
log.Info(weight)
|
||||
|
||||
quota.NumberGPU += per * weight
|
||||
availableGPU -= per * weight
|
||||
|
Loading…
Reference in New Issue
Block a user