Raft v0.2.0 Raft.Config
Defines the configuration for peer servers.
Link to this section Summary
Functions
Generates a random timeout value between the min_election_timeout and max_election_timeout
Link to this section Types
Link to this type
t()
t() :: %Raft.Config{
data_dir: String.t(),
heartbeat_timeout: non_neg_integer(),
max_election_timeout: non_neg_integer(),
min_election_timeout: non_neg_integer(),
state_machine: module()
}
Link to this section Functions
Link to this function
data_dir(map)
Link to this function
db_path(name, config)
Generates a random timeout value between the min_election_timeout and max_election_timeout.
Link to this function
new(opts)