scheduler

package
v0.0.0-...-778cffa Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfiguration

type ApiConfiguration struct {
	Server  server.Configuration
	Version string
	Cert    string
	Key     string
	Port    int
}

Holds configuration for the built-in REST API.

type Configuration

type Configuration struct {
	Persistence *PersistenceConfiguration
	Leader      *LeaderConfiguration
	APIServer   *ApiConfiguration
	FileServer  *FileServerConfiguration
	Scheduler   *SchedulerConfiguration
	Executor    *ExecutorConfiguration
}

Holds configuration for all of our components.

func (*Configuration) Initialize

func (c *Configuration) Initialize() *Configuration

Stores and initializes all of our configuration.

type ExecutorConfiguration

type ExecutorConfiguration struct {
	CustomExecutor bool
	URI            string
	Name           string
	Command        string
	Shell          bool
	TLS            bool
}

type FileServerConfiguration

type FileServerConfiguration struct {
	Cert string
	Key  string
	Port int
	Path string
}

Configuration for the file (executor) server.

type LeaderConfiguration

type LeaderConfiguration struct {
	IP            string
	ServerPort    int
	AddressFamily string
	RetryInterval time.Duration
	ServerRetry   time.Duration
}

Configuration for leader (HA) operation.

type PersistenceConfiguration

type PersistenceConfiguration struct {
	Endpoints        string
	Timeout          time.Duration
	KeepaliveTime    time.Duration
	KeepaliveTimeout time.Duration
	MaxRetries       int
}

Persistence connection configuration.

type SchedulerConfiguration

type SchedulerConfiguration struct {
	CustomExecutor    bool
	MesosEndpoint     string
	Name              string
	User              string
	Role              string
	Checkpointing     bool
	Principal         string
	Secret            string
	ExecutorSrvCfg    server.Configuration
	ExecutorName      string
	ExecutorCmd       string
	Failover          float64
	Hostname          string
	ReconcileInterval time.Duration
	SubscribeRetry    time.Duration
}

Configuration for the main scheduler.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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