node_manager

package
v0.0.0-...-6afd13e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PollingIntervalInSec = 5
	ShutDownTimeout      = 630
)

Variables

View Source
var GetShutDownTimeout = func() int {
	return ShutDownTimeout
}

Functions

This section is empty.

Types

type NodeManager

type NodeManager interface {
	VerifyClusterIsUnhealthy() (bool, error)
	VerifyAllNodesAreReachable() error
	StopAllNodes() error
	GetSequenceNumbers() (map[string]int, error)
	BootstrapNode(baseURL string) error
	JoinNode(baseURL string) error
	FindUnhealthyNode() (string, error)
	StopNode(string) error
}

func New

func New(rootConfig *config.Config, clock clock.Clock) NodeManager

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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