Documentation
¶
Index ¶
Constants ¶
View Source
const MaximumConcurrency = 2048
MaximumConcurrency of hc is used to avoid unexpected large number of hosts resulting in huge number of goroutines. Observed that number of hosts in prod env are almost all less than one thousand, we arbitrarily choose 2048 for MaximumConcurrency as the upperbound.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor monitors the health state of hosts.
func NewMonitor ¶
NewMonitor creates a health monitor.
func (*Monitor) ResetHealthCheck ¶
func (m *Monitor) ResetHealthCheck(config *hc.HealthCheck) error
ResetHealthCheck resets the health check configurations.
Click to show internal directories.
Click to hide internal directories.