mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-06 22:01:55 +00:00
update
This commit is contained in:
parent
3c7d28165f
commit
733d28f577
@ -45,7 +45,7 @@ func (jm *JobManager) start() {
|
||||
}
|
||||
jm.resources = jm.scheduler.AcquireResource(jm.job)
|
||||
if len(jm.resources) > 0 {
|
||||
log.Info("Receive resource", jm.resources)
|
||||
log.Info(jm.job.Name, " receive resource", jm.resources)
|
||||
break
|
||||
}
|
||||
/* sleep random Millisecond to avoid deadlock */
|
||||
|
@ -160,6 +160,7 @@ func (pool *ResourcePool) init(conf Configuration) {
|
||||
}
|
||||
pool.batchAllocations[task.Job] = append(pool.batchAllocations[task.Job], nodes[i])
|
||||
}
|
||||
//bug
|
||||
}
|
||||
pool.batchJobs = left
|
||||
pool.batchMu.Unlock()
|
||||
|
@ -264,10 +264,10 @@ func (scheduler *SchedulerFair) Start() {
|
||||
log.Debug("schedulingJobs are ", scheduler.schedulingJobs)
|
||||
log.Debug("Before ")
|
||||
for queue, quota := range scheduler.queuesQuota {
|
||||
log.Info("Queue<->", queue)
|
||||
log.Info("GPU:", quota.NumberGPU)
|
||||
log.Info("CPU:", quota.CPU)
|
||||
log.Info("Memory:", quota.Memory)
|
||||
log.Debug("Queue<->", queue)
|
||||
log.Debug("GPU:", quota.NumberGPU)
|
||||
log.Debug("CPU:", quota.CPU)
|
||||
log.Debug("Memory:", quota.Memory)
|
||||
}
|
||||
pool := InstanceOfResourcePool()
|
||||
/* Make sure resource it enough */
|
||||
|
Loading…
Reference in New Issue
Block a user