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