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
7f0b3316f0
commit
ba8c392888
@ -133,10 +133,13 @@ func (scheduler *SchedulerFair) Start() {
|
|||||||
minRequestGPU = needGPU
|
minRequestGPU = needGPU
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if quota, ok := scheduler.queuesQuota[bestQueue]; ok {
|
||||||
|
totalGPU -= quota.NumberGPU
|
||||||
|
}
|
||||||
/* if totalGPU can satisfy that job, start borrowing */
|
/* if totalGPU can satisfy that job, start borrowing */
|
||||||
if bestQueue != "" && totalGPU >= minRequestGPU {
|
if bestQueue != "" && totalGPU >= minRequestGPU {
|
||||||
log.Info("start borrow phase")
|
log.Info("start borrow phase")
|
||||||
log.Info(totalGPU, " still need ", minRequestGPU)
|
log.Info(bestQueue, ": ", "total=", totalGPU, " still need ", minRequestGPU)
|
||||||
for {
|
for {
|
||||||
/* if all satisfied, break */
|
/* if all satisfied, break */
|
||||||
if minRequestGPU == 0 {
|
if minRequestGPU == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user