Skip to main content

Crate sleet

Crate sleet 

Source
Expand description

sleet is a fleet manager for SlateDB databases: it runs their background services (garbage collection, compaction coordination, and compaction execution) outside the writer process. See rfcs/ for the design.

Use Fleet for the supported programmatic API. It opens object stores from URLs using credentials and provider settings in the process environment. The caller owns the Tokio runtime, tracing subscriber, and cancellation signal.

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
DatabaseStatus
One registered database and its service placement.
Fleet
A fleet root opened with object-store settings from the process environment.
HumanDuration
A duration in humantime form, e.g. "10s", "5m", "1h 30m".
MirrorRestoreResponse
The sleet mirror restore response.
MirrorStatus
One (database, target) mirror’s lag, from the source and destination heads.
MirrorSyncOptions
Node-local options for a one-shot mirror sync.
MirrorSyncResponse
The sleet mirror sync response: one pass, plus the prune that follows it when retention is set.
NodeOptions
Node-specific settings, from flags only; everything else lives in the fleet root.
NodeStatus
One fleet member.
QueueStatus
Compaction queue depth for one database.
RegisterResponse
The sleet register response.
ServicePlacement
Where one database service runs: the top of the service’s rendezvous ranking. One node for gc and compactor-coordinator, the top count nodes for compaction-workers. Empty means no live node offers the service.
StatusOptions
Optional, more expensive status probes.
StatusResponse
The sleet status response, derived from the fleet root: node liveness, roles, and versions from nodes/, registered databases from dbs/, and placement by computing the same rendezvous ranking the nodes do.

Enums§

Error
A supported API operation failure.
RestorePoint
Which restore point to restore.
Service
A per-database service.

Constants§

SLATEDB_VERSION
The slatedb version compiled into this binary (from Cargo.lock via build.rs), carried in heartbeat bodies.

Functions§

mirror_restore
Restore a backup URL into an empty destination URL.