mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-07 06:02:09 +08:00
fix(scheduler): avoid_same_host 策略分数过高导致调度分配不均 (#22139)
This commit is contained in:
@@ -36,7 +36,7 @@ func (p *AvoidSameHostPriority) Map(u *core.Unit, c core.Candidater) (core.HostP
|
||||
|
||||
ownerTenantID := u.SchedData().Project
|
||||
if count, ok := c.Getter().ProjectGuests()[ownerTenantID]; ok && count > 0 {
|
||||
h.SetScore(-1 * int(count))
|
||||
h.SetScore(-1 * int(float64(count)*0.1))
|
||||
}
|
||||
|
||||
return h.GetResult()
|
||||
|
||||
Reference in New Issue
Block a user