Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBinPackSchedulePolicy ¶
func NewBinPackSchedulePolicy() (policies.SchedulingPolicy, error)
NewBinPackSchedulePolicy creates a new binpack schedule policy.
Types ¶
type SchedulePolicy ¶
type SchedulePolicy struct {
policies.BaseSchedulePolicy
}
SchedulePolicy implements the SchedulePolicy interface. This policy tries to maximize the use of a node first before trying other nodes. More consolidation less load balancing.
func (*SchedulePolicy) Rank ¶
func (s *SchedulePolicy) Rank(availableOffers policies.WeightedOffers, necessaryResources resources.Resources) policies.WeightedOffers
Click to show internal directories.
Click to hide internal directories.