RaftFleet.activate

You're seeing just the function activate, go back to RaftFleet module for more information.

Specs

activate(RaftFleet.ZoneId.t()) :: :ok | {:error, :not_inactive}

Activates Node.self().

When :raft_fleet is started as an OTP application, the node is not active; to host consensus group members each node must be explicitly activated. zone is an ID of data center zone which this node belongs to. zone is used to determine which nodes to replicate data: RaftFleet tries to place members of each consensus group across multiple zones for maximum availability.

Node activation by calling this function should be done after the node is fully connected to the other existing nodes. Otherwise there is a possibility that the current node, without noticing other active nodes in the cluster, initiates a new 1-member cluster instead of joining the already initiated cluster.

Note that, before calling this function, it is necessary to load and start OTP applications that are required by consensus group implementations. Specifically, :data_modules and :communication_modules specified by consensus group configurations must be available.