1
0
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:
Newnius 2020-05-31 19:44:52 +08:00
parent bbb5fda362
commit 242a213019
2 changed files with 1 additions and 6 deletions

View File

@ -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 {

View File

@ -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 {