algorithm

package
v1.2.0-alpha.4....-ab6edd8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: Apache-2.0 Imports: 12 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,
	prototype *mesosproto.ExecutorInfo,
	frameworkRoles, defaultPodRoles []string,
	defaultCpus mresource.CPUShares,
	defaultMem mresource.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