Liking cljdoc? Tell your friends :D

lb.cluster.manager

Cluster manager - orchestrates membership, gossip, and state synchronization.

This is the internal orchestration layer. Use lb.cluster namespace for the public API.

Cluster manager - orchestrates membership, gossip, and state synchronization.

This is the internal orchestration layer. Use lb.cluster namespace for the public API.
raw docstring

broadcast-state!clj

(broadcast-state! state-type key value)

Broadcast a state change to the cluster.

Broadcast a state change to the cluster.
sourceraw docstring

broadcast-states!clj

(broadcast-states! states)

Broadcast multiple state changes to the cluster.

Broadcast multiple state changes to the cluster.
sourceraw docstring

cluster-sizeclj

(cluster-size)

Get number of alive nodes.

Get number of alive nodes.
sourceraw docstring

cluster-statsclj

(cluster-stats)

Get cluster statistics.

Get cluster statistics.
sourceraw docstring

default-cluster-configclj

Default cluster configuration.

Default cluster configuration.
sourceraw docstring

get-alive-nodesclj

(get-alive-nodes)

Get set of alive node IDs.

Get set of alive node IDs.
sourceraw docstring

get-all-nodesclj

(get-all-nodes)

Get all known nodes.

Get all known nodes.
sourceraw docstring

get-configclj

(get-config)

Get current cluster configuration.

Get current cluster configuration.
sourceraw docstring

get-local-nodeclj

(get-local-node)

Get this node's info.

Get this node's info.
sourceraw docstring

get-node-idclj

(get-node-id)

Get this node's ID.

Get this node's ID.
sourceraw docstring

merge-configclj

(merge-config user-config)

Merge user config with defaults.

Merge user config with defaults.
sourceraw docstring

on-node-failure!clj

(on-node-failure! node-id)

Handle a node failure. Called by membership when node is confirmed dead.

Handle a node failure. Called by membership when node is confirmed dead.
sourceraw docstring

register-provider!clj

(register-provider! provider)

Register a state provider for synchronization.

Register a state provider for synchronization.
sourceraw docstring

running?clj

(running?)

Check if cluster manager is running.

Check if cluster manager is running.
sourceraw docstring

start!clj

(start! config)

Start the cluster manager.

Start the cluster manager.
sourceraw docstring

stop!clj

(stop!)

Stop the cluster manager.

Stop the cluster manager.
sourceraw docstring

subscribe!clj

(subscribe! callback)

Subscribe to cluster events. Returns unsubscribe function.

Subscribe to cluster events. Returns unsubscribe function.
sourceraw docstring

unregister-provider!clj

(unregister-provider! type)

Unregister a state provider.

Unregister a state provider.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close