salud

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 12 Imported by: 2

Documentation

Overview

Package salud monitors the connected peers, calculates certain thresholds, and marks peers as unhealthy that fall short of the thresholds to maintain network salud (health).

Index

Constants

View Source
const (
	DefaultMinPeersPerBin  = 4
	DefaultDurPercentile   = 0.4 // consider 40% as healthy, lower percentile = stricter duration check
	DefaultConnsPercentile = 0.8 // consider 80% as healthy, lower percentile = stricter conns check
)

Variables

This section is empty.

Functions

func New

func New(
	status peerStatus,
	topology topologyDriver,
	reserve reserve,
	logger log.Logger,
	warmup time.Duration,
	mode string,
	minPeersPerbin int,
	durPercentile float64,
	connsPercentile float64,
) *service

Types

This section is empty.

Jump to

Keyboard shortcuts

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