Documentation ¶
Index ¶
- func NewClockSyncCheck(...) func(_ config.Config, _ io.Writer, _ bool) *Check
- type Check
- func NewGitalyNodeConnectivityCheck(conf config.Config, w io.Writer, quiet bool) *Check
- func NewPostgresReadWriteCheck(conf config.Config, w io.Writer, quiet bool) *Check
- func NewPraefectMigrationCheck(conf config.Config, w io.Writer, quiet bool) *Check
- func NewUnavailableReposCheck(conf config.Config, w io.Writer, quiet bool) *Check
- type CheckFunc
- type Connections
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶ added in v15.3.0
type Check struct { Run func(ctx context.Context) error Name string Description string Severity Severity }
Check is a struct representing a check on the health of a Gitaly cluster's setup. These are separate from the "healthcheck" concept which is more concerned with the health of the praefect service. These checks are meant to diagnose any issues with the praefect cluster setup itself and will be run on startup/restarts.
func NewGitalyNodeConnectivityCheck ¶ added in v15.3.0
NewGitalyNodeConnectivityCheck returns a check that ensures Praefect can talk to all nodes of all virtual storages
func NewPostgresReadWriteCheck ¶ added in v15.3.0
NewPostgresReadWriteCheck returns a check that ensures Praefect can read and write to the database
func NewPraefectMigrationCheck ¶ added in v15.3.0
NewPraefectMigrationCheck returns a Check that checks if all praefect migrations have run
type CheckFunc ¶ added in v15.3.0
CheckFunc is a function type that takes a praefect config and returns a Check
type Connections ¶
type Connections map[string]map[string]*grpc.ClientConn
Connections contains connections to Gitaly nodes keyed by virtual storage and storage
This duplicates the praefect.Connections type as it is not possible to import anything from `praefect` to `info` or `server` packages due to cyclic dependencies.
type Severity ¶ added in v15.3.0
type Severity string
Severity is a type that indicates the severity of a check
const ( // Warning indicates a severity level of warning Warning Severity = "warning" // Fatal indicates a severity level of fatal // any checks that are Fatal will prevent Praefect from starting up Fatal = "fatal" )