caravan v1.0.0 Caravan.Cluster.Config
Config for Caravan.Cluster.DnsStrategy.
- topology: topology name passed to
Cluster.Strategy.connect_nodes/4
- query: The name to query for SRV records. Something like:
prod-likes-service-dist-consul
- dns_client: module implementing
Caravan.DnsClient
. Defaults toCaravan.DnsClient.InetRes
. - node_sname: the base of a node name. App name is a good candidate.
- connect: Override to use a different transport mechanism. Uses
:libcluster
defaults otherwise. - disconnect: Override to use a different transport mechanism. Uses
:libcluster
defaults otherwise. - list_nodes: Override to use a different transport mechanism. Uses
:libcluster
defaults otherwise. - poll_interval: poll the dns server on this interval. Defaults to
5_000
Link to this section Summary
Functions
Takes a Cluster.Strategy.State
and returns a Config struct
Link to this section Types
Link to this section Functions
Takes a Cluster.Strategy.State
and returns a Config struct