emqx/rel/config/examples/cluster-with-etcd.conf.example
Zaiming (Stone) Shi e0d05a02ff refactor: refine examples
Also turns off vm_dist_collector metrics collector by default
2023-06-27 14:23:18 +02:00

26 lines
654 B
Plaintext

## Cluster discovery using 'etcd' service
## Connect to etcd over plain TCP (not TLS)
cluster {
## Human-friendly name of the EMQX cluster.
name = emqxcl
## Service discovery method for the cluster nodes
discovery_strategy = etcd
## If true, the node will try to heal network partitions automatically
autoheal = true
etcd {
## List of endpoint URLs of the etcd cluster
## Type: Comma Separated String
server = "http://ur1,http://ur2"
## Key prefix used for EMQX service discovery
prefix = emqxcl
## Expiration time of the etcd key associated with the node
node_ttl = 1m
}
}