connhealthcheck

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const HealthCheckId = "com.hailocab.service.tcpconn"

Variables

This section is empty.

Functions

func MaxTcpConnections

func MaxTcpConnections(hosts []string, maxconns int) healthcheck.Checker

MaxTcpConnections inspects the number of established TCP connections are being made by this process for a list of hosts. If the aggregate exceeds maxconns then an error will be raised.

func TcpConnections

func TcpConnections(threshold int) healthcheck.Checker

TcpConnections returns all the remote hosts and the number of connections to each. If any exceeds the threshold it will raise an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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