proberun

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proberun runs the probe role of a Pulsequorum node. It is shared by the pulsequorum and pulsequorum-probe binaries and must not import voter-only packages (ADR 0043).

Index

Constants

View Source
const CheckpointInterval = 60 * time.Second

CheckpointInterval is the period of the WAL checkpoint job (ADR 0013 C4).

Variables

This section is empty.

Functions

func DBFileSizes

func DBFileSizes(db *sqlite.DB) struct{ Size, WAL int64 }

DBFileSizes returns the size of the database file and of its WAL in bytes. A file that cannot be stat'ed counts as 0; the metric then shows the drop.

func ReadJoinToken

func ReadJoinToken(cfg config.Config) (string, error)

ReadJoinToken returns the join token from JOIN_TOKEN or JOIN_TOKEN_FILE. It is a secret and never logged.

func Run

func Run(ctx context.Context, cfg config.Config, log *slog.Logger) error

Run starts the probe role and blocks until ctx is done or the probe fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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