Documentation ¶
Overview ¶
Package loadvariationriskbalancing plugin attempts to balance the risk in load variation across the cluster. Risk is expressed as the sum of average and standard deviation of the measured load on a node. Typical load balancing involves only the average load. Here, we consider the variation in load as well, hence resulting in a safer balance.
Index ¶
- Constants
- func New(ctx context.Context, obj runtime.Object, handle framework.Handle) (framework.Plugin, error)
- type LoadVariationRiskBalancing
- func (pl *LoadVariationRiskBalancing) Name() string
- func (pl *LoadVariationRiskBalancing) NormalizeScore(context.Context, *framework.CycleState, *v1.Pod, framework.NodeScoreList) *framework.Status
- func (pl *LoadVariationRiskBalancing) Score(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, ...) (int64, *framework.Status)
- func (pl *LoadVariationRiskBalancing) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const (
// Name : name of plugin
Name = "LoadVariationRiskBalancing"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadVariationRiskBalancing ¶
type LoadVariationRiskBalancing struct {
// contains filtered or unexported fields
}
LoadVariationRiskBalancing : scheduler plugin
func (*LoadVariationRiskBalancing) Name ¶
func (pl *LoadVariationRiskBalancing) Name() string
Name : name of plugin
func (*LoadVariationRiskBalancing) NormalizeScore ¶
func (pl *LoadVariationRiskBalancing) NormalizeScore(context.Context, *framework.CycleState, *v1.Pod, framework.NodeScoreList) *framework.Status
NormalizeScore : normalize scores
func (*LoadVariationRiskBalancing) Score ¶
func (pl *LoadVariationRiskBalancing) Score(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score : evaluate score for a node
func (*LoadVariationRiskBalancing) ScoreExtensions ¶
func (pl *LoadVariationRiskBalancing) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions : an interface for Score extended functionality
Click to show internal directories.
Click to hide internal directories.