Bedrock.ControlPlane.Config (bedrock v0.5.2)
View SourceA Config is a data structure that describes the configuration of the
control plane. It contains the current state of the cluster, the parameters
that are used to configure the cluster, and the policies that are used to
configure the cluster.
Summary
Types
@type state() :: :uninitialized | :recovery | :running | :stopping
@type t() :: %{ optional(:recovery_attempt) => Bedrock.ControlPlane.Config.RecoveryAttempt.t(), coordinators: [node()], parameters: Bedrock.ControlPlane.Config.Parameters.t() | nil, policies: Bedrock.ControlPlane.Config.Policies.t() | nil }
Struct representing the control plane configuration.
Fields
coordinators- The coordinators of the cluster.parameters- The parameters that are used to configure the cluster.policies- The policies that are used to configure the cluster.
Functions
Returns true if the cluster will allow volunteer nodes to join.
Returns the nodes that are part of the cluster.
@spec key_range(min_key :: Bedrock.key(), max_key_exclusive :: Bedrock.key()) :: Bedrock.key_range()
Creates a new Config struct.
@spec ping_rate_in_ms(t()) :: pos_integer()
Returns the ping rate in milliseconds.