Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Balancer ¶
type Balancer struct {
// contains filtered or unexported fields
}
not need workqueue
func NewBalancer ¶
func (*Balancer) BalanceNodeRes ¶
We assume deleted pods schedule to outRightHosts and AddPod on them. When we RemovePod/AddPod it wil recalculate the score. STEP 1: resPressureOutLeftHostsMap delete pod one-by-one until the node score bigger than left. STEP 2: leftMeanHost rand delete pod one-by-one until outRightHostsMap.resFull is true.
func (*Balancer) PrioritizeNodes ¶
type HostGSL ¶
type HostGSL struct { HostPriorityList schedulerapi.HostPriorityList // contains filtered or unexported fields }
type NodeInfoExt ¶
func (*NodeInfoExt) AddPod ¶
func (n *NodeInfoExt) AddPod(pod *v1.Pod)
func (*NodeInfoExt) GetScore ¶
func (n *NodeInfoExt) GetScore() float64
func (*NodeInfoExt) RemovePod ¶
func (n *NodeInfoExt) RemovePod(pod *v1.Pod)
Click to show internal directories.
Click to hide internal directories.