mesos

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const EXECUTOR_CPU = 0.01
View Source
const EXECUTOR_DISK = 1
View Source
const EXECUTOR_MEM = 32

Variables

This section is empty.

Functions

func IsTerminalState added in v0.0.15

func IsTerminalState(state string) bool

Types

type EventCallback

type EventCallback func(Scheduler, msg.Event)

type FrameworkIDStore

type FrameworkIDStore interface {
	FrameworkID() (string, error)
	SetFrameworkID(string) error
}

type Resources

type Resources struct {
	CPU  float64 `json:"cpu"`
	Mem  float64 `json:"mem"`
	Disk float64 `json:"disk"`
}

type Scheduler

type Scheduler interface {
	HeartbeatInterval() time.Duration
	IsSubscribed() bool

	Subscribe() error
	Teardown() error
	Disconnect()

	Accept(msg.Offer, Resources, []msg.TaskInfo) error
	Decline([]string) error

	Suppress([]string) error
	Revive(string) error
	// Shutdown()
	Kill(string, string) error

	Acknowledge(string, string, string) error
	AcknowledgeOperationStatus(string, string, string, string) error

	Reconcile([]string) error
}

func NewScheduler

func NewScheduler(frameworkId FrameworkIDStore, conf SchedulerConfig) (Scheduler, error)

type SchedulerConfig

type SchedulerConfig struct {
	Name            string
	User            string
	Roles           []string
	Hostname        string
	WebUI           string
	MesosMaster     string
	Callbacks       []EventCallback
	FrameworkID     FrameworkIDStore
	FailoverTimeout time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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