raft_fleet v0.1.12 RaftFleet.Config

RaftFleet defines the following application configs:

  • :balancing_interval

    • Time interval between periodic triggers of workers whose job is to re-balance Raft member processes across the cluster.
    • The actual value used is obtained by Application.get_env(:raft_fleet, :balancing_interval, 60000), i.e. it defaults to 1 minutes.
  • :node_purge_threshold_failing_members

    • RaftFleet automatically purges unhealthy nodes. To judge whether a node is healthy or not, it uses number of unresponsive Raft members.
    • The actual value used is obtained by Application.get_env(:raft_fleet, :node_purge_threshold_failing_members, 2), i.e. nodes that have more than or equal to 600001 failing Raft members are regarded as “unhealthy”.
  • :node_purge_failure_time_window

    • When a node remains “unhealthy” for longer than this time window, it is removed from the participating nodes (that is, all activated nodes that host consensus members).
    • The actual value used is obtained by Application.get_env(:raft_fleet, :node_purge_failure_time_window, 600000), i.e. it defaults to 10 minutes.
  • :leader_pid_cache_refresh_interval

    • Interval time in milliseconds of leader pids cached in each nodes’ local ETS tables.
    • The actual value used is obtained by Application.get_env(:raft_fleet, :leader_pid_cache_refresh_interval, 300000), i.e. it defaults to 5 minutes.

Summary

Functions

balancing_interval()
balancing_interval() :: pos_integer
leader_pid_cache_refresh_interval()
leader_pid_cache_refresh_interval() :: pos_integer
node_purge_failure_time_window()
node_purge_failure_time_window() :: pos_integer
node_purge_threshold_failing_members()
node_purge_threshold_failing_members() :: pos_integer