replicated

package
v0.0.0-...-2f05a08 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orchestrator

type Orchestrator struct {
	// contains filtered or unexported fields
}

An Orchestrator runs a reconciliation loop to create and destroy tasks as necessary for the replicated services.

func NewReplicatedOrchestrator

func NewReplicatedOrchestrator(store *store.MemoryStore) *Orchestrator

NewReplicatedOrchestrator creates a new replicated Orchestrator.

func (*Orchestrator) FixTask

func (r *Orchestrator) FixTask(ctx context.Context, batch *store.Batch, t *api.Task)

FixTask validates a task with the current cluster settings, and takes action to make it conformant. it's called at orchestrator initialization.

func (*Orchestrator) IsRelatedService

func (r *Orchestrator) IsRelatedService(service *api.Service) bool

IsRelatedService returns true if the service should be governed by this orchestrator

func (*Orchestrator) Run

func (r *Orchestrator) Run(ctx context.Context) error

Run contains the orchestrator event loop. It runs until Stop is called.

func (*Orchestrator) Stop

func (r *Orchestrator) Stop()

Stop stops the orchestrator.

Jump to

Keyboard shortcuts

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