package algorithm

import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/algorithm"

Package algorithm implements the SchedulerAlgorithm

Index

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,
	prototype *mesosproto.ExecutorInfo,
	roles []string,
	defaultCpus mresource.CPUShares,
	defaultMem mresource.MegaBytes,
) SchedulerAlgorithm

New returns a new SchedulerAlgorithm TODO(sur): refactor params to separate config object

Source Files

algorithm.go doc.go

Directories

PathSynopsis
contrib/mesos/pkg/scheduler/components/algorithm/podschedulersPackage podschedulers defines an interface (w/ implementations) for matching pods against offers.
Version
v1.2.0-alpha.5
Published
Dec 15, 2015
Platform
js/wasm
Imports
12 packages
Last checked
9 seconds ago

Tools for package owners.