cluster-with-etcd.conf.example 654 B

12345678910111213141516171819202122232425
  1. ## Cluster discovery using 'etcd' service
  2. ## Connect to etcd over plain TCP (not TLS)
  3. cluster {
  4. ## Human-friendly name of the EMQX cluster.
  5. name = emqxcl
  6. ## Service discovery method for the cluster nodes
  7. discovery_strategy = etcd
  8. ## If true, the node will try to heal network partitions automatically
  9. autoheal = true
  10. etcd {
  11. ## List of endpoint URLs of the etcd cluster
  12. ## Type: Comma Separated String
  13. server = "http://ur1,http://ur2"
  14. ## Key prefix used for EMQX service discovery
  15. prefix = emqxcl
  16. ## Expiration time of the etcd key associated with the node
  17. node_ttl = 1m
  18. }
  19. }