Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailureError ¶ added in v1.0.1
type FailureError struct {
PodName string
}
FailureError is returned when the FailTiDBSchedulerLabelKey is seen
func (FailureError) Error ¶ added in v1.0.1
func (ferr FailureError) Error() string
type Scheduler ¶
type Scheduler interface { // Filter based on extender-implemented predicate functions. The filtered list is // expected to be a subset of the supplied list. Filter(*schedulerapi.ExtenderArgs) (*schedulerapi.ExtenderFilterResult, error) // Preempt implements scheduler extender preempt verb. Preempt(args *schedulerapi.ExtenderPreemptionArgs) (*schedulerapi.ExtenderPreemptionResult, error) // Prioritize based on extender-implemented priority functions. The returned scores & weight // are used to compute the weighted score for an extender. The weighted scores are added to // the scores computed by kubernetes scheduler. The total scores are used to do the host selection. Priority(*schedulerapi.ExtenderArgs) (schedulerapi.HostPriorityList, error) }
Scheduler is an interface for external processes to influence scheduling decisions made by kubernetes. This is typically needed for resources not directly managed by kubernetes.
func NewScheduler ¶
func NewScheduler(kubeCli kubernetes.Interface, cli versioned.Interface) Scheduler
NewScheduler returns a Scheduler
Click to show internal directories.
Click to hide internal directories.