Documentation
¶
Overview ¶
Package algorithm implements the SchedulerAlgorithm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchedulerAlgorithm ¶
type SchedulerAlgorithm interface {
Schedule(pod *api.Pod) (string, error)
}
SchedulerAlgorithm is the interface that orchestrates the pod scheduling.
Schedule implements the Scheduler interface of Kubernetes. It returns the selectedMachine's hostname or an error if the schedule failed.
func New ¶
func New(
sched scheduler.Scheduler,
podUpdates queue.FIFO,
podScheduler podschedulers.PodScheduler,
taskConfig podtask.Config,
defaultCpus resources.CPUShares,
defaultMem resources.MegaBytes,
) SchedulerAlgorithm
New returns a new SchedulerAlgorithm TODO(sur): refactor params to separate config object
Directories
¶
Path | Synopsis |
---|---|
Package podschedulers defines an interface (w/ implementations) for matching pods against offers.
|
Package podschedulers defines an interface (w/ implementations) for matching pods against offers. |
Click to show internal directories.
Click to hide internal directories.