emqx / ekka

Autocluster and Autoheal for EMQX Broker
https://www.emqx.com
Apache License 2.0
97 stars 49 forks source link

consul.io auto cluster support #57

Open alex-bermishev opened 5 years ago

alex-bermishev commented 5 years ago

any plans to add support for emqx autocluster via consul.io? or maybe there is some workaround to achieve emqx peer discovery with consul.io

MrRagnar commented 4 years ago

You can probably use DNS clustering with Consul. If all your nodes register with consul using the service name emqx the following config should work:

## Cluster discovery
cluster.discovery = dns

## Setup the domain name for cluster
cluster.dns.name = emqx.service.consul

## Setup the first part of node name
cluster.dns.app = emqx

See more: https://docs.emqx.io/tutorial/v3/en/cluster/dns.html