mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update
This commit is contained in:
parent
488dfbbb2f
commit
d6f6fc01f2
@ -84,18 +84,6 @@ func (pool *ResourcePool) start() {
|
||||
pool.saveStatusHistory()
|
||||
}()
|
||||
|
||||
segID := rand.Intn(pool.poolsCount)
|
||||
start := &pool.pools[segID]
|
||||
if start.Nodes == nil {
|
||||
start = start.Next
|
||||
}
|
||||
for cur := start; ; {
|
||||
log.Info(cur.ID)
|
||||
cur = cur.Next
|
||||
if cur.ID == start.ID {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* check dead nodes periodically */
|
||||
|
@ -740,6 +740,7 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
|
||||
Memory := 0.0001
|
||||
start := pool.pools[0].Next
|
||||
for cur := start; ; {
|
||||
log.Info(cur.ID)
|
||||
cur.Lock.Lock()
|
||||
for _, node := range cur.Nodes {
|
||||
CPU += float64(node.NumCPU)
|
||||
@ -786,7 +787,7 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
|
||||
}
|
||||
scheduler.nextQueue = next
|
||||
scheduler.queueMu.Unlock()
|
||||
log.Debug("updateNextQueue ->", next)
|
||||
log.Info("updateNextQueue ->", next)
|
||||
}
|
||||
|
||||
func (scheduler *SchedulerFair) Attach(GPU string, job string) {
|
||||
|
Loading…
Reference in New Issue
Block a user