topology

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder interface {
	NotifyGossipJoin(id uint64)
	NotifyGossipLeave(id uint64)
	NotifyRaftConfChange(cluster string, cc raftpb.ConfChangeI)
	ListDeadNodes(time.Duration) []uint64
	RaftMemberCount(cluster string) int
}

Recorder records membership changes from an external pool, and compares it to raft members to detect node failures.

func NewRecorder

func NewRecorder(logger *zap.Logger) Recorder

NewRecorder returns a new recorder.

Jump to

Keyboard shortcuts

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