Hyper.Node.Budget.Advertiser (Hyper v0.1.0)

Copy Markdown View Source

Owns this node's entry in Hyper.Cluster.Budget. Registers a fresh Hyper.Node.Budget.NodeState on start and re-publishes it on demand (publish/0, called on every allocation by Hyper.Node.Budget.Hard) and on a periodic heartbeat (keeps drifting soft-load fresh and restores the registration if the registry restarted).

Summary

Functions

Returns a specification to start this module under a supervisor.

Recompute and re-publish this node's state now.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

publish()

@spec publish() :: :ok

Recompute and re-publish this node's state now.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()