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.
Click to show internal directories.
Click to hide internal directories.