class Movie::Cluster::ClusterSettings

Defined in:

movie/cluster/settings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cluster_name : String = "movie-cluster", seed_nodes : Array(Movie::Address) = [] of Movie::Address, roles : Array(String) = [] of String, join_retry_interval : Time::Span = 1.second, gossip_interval : Time::Span = 1.second, gossip_fanout : Int32 = 3, max_members : Int32 = 10000, heartbeat_interval : Time::Span = 1.second, heartbeat_timeout : Time::Span = 5.seconds, discovery : SeedDiscovery | Nil = nil, bootstrap : BootstrapSettings = BootstrapSettings.new, protocol_version : Int32 = 1, minimum_protocol_version : Int32 = 1, app_version : String = "0.1.0") #

[View source]

Instance Method Detail

def app_version : String #

[View source]
def bootstrap : BootstrapSettings #

[View source]
def cluster_name : String #

[View source]
def discovery : SeedDiscovery | Nil #

[View source]
def gossip_fanout : Int32 #

[View source]
def gossip_interval : Time::Span #

[View source]
def heartbeat_interval : Time::Span #

[View source]
def heartbeat_timeout : Time::Span #

[View source]
def join_retry_interval : Time::Span #

[View source]
def max_members : Int32 #

[View source]
def minimum_protocol_version : Int32 #

[View source]
def protocol_version : Int32 #

[View source]
def roles : Array(String) #

[View source]
def seed_nodes : Array(Movie::Address) #

[View source]