mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
add debug
This commit is contained in:
@@ -169,6 +169,7 @@ func (jm *JobManager) status() MsgJobStatus {
|
|||||||
|
|
||||||
var res MsgTaskStatus
|
var res MsgTaskStatus
|
||||||
err = json.Unmarshal([]byte(string(body)), &res)
|
err = json.Unmarshal([]byte(string(body)), &res)
|
||||||
|
log.Info(res)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -353,6 +353,11 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
|
|||||||
tmp += float64(v.NumberGPU) / NumberGPU
|
tmp += float64(v.NumberGPU) / NumberGPU
|
||||||
tmp += float64(v.MemoryGPU) / MemoryGPU
|
tmp += float64(v.MemoryGPU) / MemoryGPU
|
||||||
tmp /= 4
|
tmp /= 4
|
||||||
|
weight := 10
|
||||||
|
if g, ok2 := InstanceOfGroupManager().groups[k]; !ok2 {
|
||||||
|
weight = g.Weight
|
||||||
|
}
|
||||||
|
tmp /= float64(weight)
|
||||||
if tmp < quota {
|
if tmp < quota {
|
||||||
quota = tmp
|
quota = tmp
|
||||||
next = k
|
next = k
|
||||||
|
|||||||
Reference in New Issue
Block a user