herd v0.4.2 Herd.Cluster View Source

Macro for generating a cluster manager. It will create, populate and refresh a Herd.Balancer in an ets table by polling the configured Herd.Discovery implementation.

Usage:

defmodule MyHerdCluster do
  use Herd.Cluster, otp_app: :myapp,
                    router: MyRouter,
                    discovery: MyDiscovery,
                    pool: MyPool
end

Link to this section Summary

Link to this section Functions

Link to this function get_node(table, router, key) View Source
Link to this function get_nodes(table, router, keys) View Source
Link to this function health_check(table, router, pool, discovery) View Source