mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 06:11:56 +00:00
update fair
This commit is contained in:
parent
bbb5fda362
commit
242a213019
@ -144,7 +144,7 @@ func (pool *ResourcePool) checkDeadNodes() {
|
||||
delete(pool.versions, k)
|
||||
pool.versionsMu.Unlock()
|
||||
nodesToDel = append(nodesToDel, k)
|
||||
log.Info(" node ", k, " is offline")
|
||||
log.Warn(" node ", k, " is offline")
|
||||
}
|
||||
}
|
||||
for _, v := range nodesToDel {
|
||||
|
@ -163,11 +163,6 @@ func (scheduler *SchedulerFair) Start() {
|
||||
if _, ok := quotas[queue]; !ok {
|
||||
quotas[queue] = &ResourceCount{}
|
||||
}
|
||||
/* one cannot borrow more before he has cleared his IOUs */
|
||||
//if len(scheduler.IOUs[queue]) > 0 {
|
||||
// continue
|
||||
//}
|
||||
|
||||
needGPU := numberGPUtmp*1000 - quotas[queue].NumberGPU
|
||||
/* the less, the better */
|
||||
if bestQueue == "" || needGPU < minRequestGPU {
|
||||
|
Loading…
Reference in New Issue
Block a user