class

Clustering::Discovery

Inherits Reference < Object

Constructors

new(cluster : Clustering, ttl : Time::Span = 5.seconds)
Source

Instance methods

[](key)
Source
[]?(key)
Source
expire!
Source
find(key : String) : URI

Consistent hash lookup

Source
find?(key : String) : URI | Nil

Consistent hash lookup

Source
last_updated
Source
node_hash

Returns the list of node IDs => URI mapping

Source
nodes

Returns the list of node URIs from the rendezvous-hash

Source
on_rebalance
Source
own_node?(key : String) : Bool

Determine if key maps to current node

Source
rebalance_callbacks
Source
rendezvous
Source