Documentation
¶
Overview ¶
Package probes contains the implementation of startup, liveness and readiness probes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
IsHealthy(ctx context.Context, w http.ResponseWriter)
}
Checker executes the probe and writes the response to the request
func NewLivenessChecker ¶
NewLivenessChecker creates a new instance of the liveness probe checker
func NewReadinessChecker ¶
NewReadinessChecker creates a new instance of the readiness probe checker
type LivenessPingerCfg ¶
type LivenessPingerCfg struct {
Enabled *bool `json:"enabled"`
RequestTimeout int `json:"requestTimeout,omitempty"`
ConnectionTimeout int `json:"connectionTimeout,omitempty"`
}
LivenessPingerCfg if the configuration of the instance reachability checker
func NewLivenessPingerConfigFromAnnotations ¶
func NewLivenessPingerConfigFromAnnotations( ctx context.Context, annotations map[string]string, ) (*LivenessPingerCfg, error)
NewLivenessPingerConfigFromAnnotations creates a new pinger configuration from the annotations in the cluster definition
type ReplicaLaggingError ¶
type ReplicaLaggingError struct {
// DetectedLag is the lag that was detected
DetectedLag uint64
// ConfiguredLag is the lag as configured in the probe
ConfiguredLag uint64
// LatestEndTime is the time of last write-ahead log location reported to
// origin WAL sender
LatestEndTime string
}
ReplicaLaggingError is raised when a replica is lagging more than the configured cap
func (*ReplicaLaggingError) Error ¶
func (e *ReplicaLaggingError) Error() string
Click to show internal directories.
Click to hide internal directories.