algorithm

package
v1.4.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL