Bedrock.Durability (bedrock v0.5.2)
View SourceDurability profile contract for Bedrock clusters.
This module exposes a small API that downstream integrations can call to:
Summary
Functions
Evaluates the durability profile for the given target.
Enforces durability profile requirements for the given mode.
Types
Functions
@spec profile(target()) :: Bedrock.Durability.Profile.t()
Evaluates the durability profile for the given target.
The target may be:
- a cluster module (must export
node_config/0, optionallyfetch_config/0) - a node config keyword list
- a map containing
:node_configand optional:cluster_config
Enforces durability profile requirements for the given mode.
Returns :ok in :relaxed mode even when profile checks fail.
Returns {:error, {:durability_profile_failed, reasons}} in :strict mode
when requirements are not met.