cluster-with-dns.conf.example 496 B

123456789101112131415161718192021
  1. ## Cluster discovery via DNS resolution
  2. cluster {
  3. ## Human-friendly name of the EMQX cluster.
  4. name = emqxcl
  5. ## Service discovery method for the cluster nodes
  6. discovery_strategy = dns
  7. ## If true, the node will try to heal network partitions automatically
  8. autoheal = true
  9. dns {
  10. ## The domain name from which to discover peer EMQX nodes' IP addresses
  11. name = localhost
  12. ## DNS record type
  13. ## Type: enum: a | srv
  14. record_type = a
  15. }
  16. }