scheduler

package
v1.2.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package scheduler implements the Kubernetes Mesos scheduler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockScheduler added in v1.2.0

type MockScheduler struct {
	sync.RWMutex
	mock.Mock
}

MockScheduler implements SchedulerApi

func (*MockScheduler) KillTask added in v1.2.0

func (m *MockScheduler) KillTask(taskId string) error

func (*MockScheduler) LaunchTask added in v1.2.0

func (m *MockScheduler) LaunchTask(task *podtask.T) error

func (*MockScheduler) Offers added in v1.2.0

func (m *MockScheduler) Offers() (f offers.Registry)

func (*MockScheduler) Reconcile added in v1.2.0

func (m *MockScheduler) Reconcile(task *podtask.T)

func (*MockScheduler) Run added in v1.2.0

func (m *MockScheduler) Run(done <-chan struct{})

func (*MockScheduler) Tasks added in v1.2.0

func (m *MockScheduler) Tasks() (f podtask.Registry)

type Scheduler added in v1.2.0

type Scheduler interface {
	Tasks() podtask.Registry
	sync.Locker // synchronize changes to tasks, i.e. lock, get task, change task, store task, unlock

	Offers() offers.Registry
	Reconcile(t *podtask.T)
	KillTask(id string) error
	LaunchTask(t *podtask.T) error
	Run(done <-chan struct{})
}

Scheduler abstracts everything other components of the scheduler need to access from eachother

Directories

Path Synopsis
Package components implements independent aspects of the scheduler which do not use Framework or Scheduler internals, but rely solely on the Scheduler interface.
Package components implements independent aspects of the scheduler which do not use Framework or Scheduler internals, but rely solely on the Scheduler interface.
Package config provides mechanisms for low-level scheduler tuning.
Package config provides mechanisms for low-level scheduler tuning.
Package constraint exposes Marathon-like constraints for scheduling pods.
Package constraint exposes Marathon-like constraints for scheduling pods.
Package errors contains all scheduler wide used errors
Package errors contains all scheduler wide used errors
Package executorinfo provides a lru-based executor info registry as well as some utility methods.
Package executorinfo provides a lru-based executor info registry as well as some utility methods.
Package ha encapsulates high-availability scheduler concerns.
Package ha encapsulates high-availability scheduler concerns.
Package integration implements integration tests.
Package integration implements integration tests.
Package meta defines framework constants used as keys in k8s annotations that are attached to k8s pods.
Package meta defines framework constants used as keys in k8s annotations that are attached to k8s pods.
Package metrics defines and exposes instrumentation metrics of the scheduler.
Package metrics defines and exposes instrumentation metrics of the scheduler.
Package podtask maps Kubernetes pods to Mesos tasks.
Package podtask maps Kubernetes pods to Mesos tasks.
Package queuer implements a Pod Queuer which stores and yields pods waiting being scheduled.
Package queuer implements a Pod Queuer which stores and yields pods waiting being scheduled.
Package resource contains the Mesos scheduler specific resource functions
Package resource contains the Mesos scheduler specific resource functions
Package service contains the cmd/k8sm-scheduler glue code
Package service contains the cmd/k8sm-scheduler glue code

Jump to

Keyboard shortcuts

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