Class RedbClusterBootstrap

Assembly: redb.Tsak.Core.Pro.dll

Bootstraps the cluster tree: ClusterRoot → Group.
On first startup creates the tree structure using redb.Tree API.
A concurrent first start on a fresh database is decided by the unique keys
(ValueUnique = cluster name / "{cluster}:{group}"): the loser of the creation
race re-reads the winner instead of creating a second tree — a split cluster by
duplicate roots is impossible by construction.

public sealed class RedbClusterBootstrap : IClusterBootstrap

Inheritance

Object→RedbClusterBootstrap

Implements

Properties

ClusterRootId

The redb object ID of the cluster root.

public long ClusterRootId { get; }

GroupId

The redb object ID of the group within the cluster.

public long GroupId { get; }

Methods

InitializeAsync(CancellationToken)

Ensures the cluster tree structure exists. Creates root and group on first startup.

public Task InitializeAsync(CancellationToken ct = default)

Constructors