host

package
v0.0.0-...-c0686e8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drainer

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

Drainer defines the host drainer which drains the hosts which are to be put into maintenance

func NewDrainer

func NewDrainer(
	parent tally.Scope,
	hostMgrClient hostsvc.InternalHostServiceYARPCClient,
	drainerPeriod time.Duration,
	rmTracker rmtask.Tracker,
	preemptionQueue preemption.Queue) *Drainer

NewDrainer creates a new Drainer

func (*Drainer) Start

func (d *Drainer) Start() error

Start starts the Drainer process

func (*Drainer) Stop

func (d *Drainer) Stop() error

Stop stops the Drainer process

type Metrics

type Metrics struct {
	HostDrainSuccess tally.Counter
	HostDrainFail    tally.Counter
}

Metrics is a placeholder for all metrics in host.

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new instance of host.Metrics.

Jump to

Keyboard shortcuts

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