cluster

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultPushPullInterval  = 60 * time.Second
	DefaultGossipInterval    = 200 * time.Millisecond
	DefaultTcpTimeout        = 10 * time.Second
	DefaultProbeTimeout      = 500 * time.Millisecond
	DefaultProbeInterval     = 1 * time.Second
	DefaultReconnectInterval = 10 * time.Second
	DefaultReconnectTimeout  = 6 * time.Hour
	DefaultRefreshInterval   = 15 * time.Second
	MaxGossipPacketSize      = 1400
)
View Source
const Name = "cluster"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr                string
	AdvertiseAddr       string
	AdvertisePort       int
	TCPTimeout          time.Duration
	IndirectChecks      int
	RetransmitMult      int
	SuspicionMult       int
	PushPullInterval    time.Duration
	ProbeInterval       time.Duration
	ProbeTimeout        time.Duration
	GossipInterval      time.Duration
	GossipToTheDeadTime time.Duration
	SecretKey           string   `yaml:"secretKey"`
	Seeds               []string `yaml:"seeds"`
}

func DefaultCfg

func DefaultCfg() *Config

func (*Config) Build

func (t *Config) Build() *memberlist.Config

Jump to

Keyboard shortcuts

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