##-------------------------------------------------------------------- ## Cluster ##-------------------------------------------------------------------- ## Cluster name. ## ## Value: String cluster.name = emqxcl ## Specify the erlang distributed protocol. ## ## Value: Enum ## - inet_tcp: the default; handles TCP streams with IPv4 addressing. ## - inet6_tcp: handles TCP with IPv6 addressing. ## - inet_tls: using TLS for Erlang Distribution. ## ## vm.args: -proto_dist inet_tcp cluster.proto_dist = inet_tcp ## Cluster auto-discovery strategy. ## ## Value: Enum ## - manual: Manual join command ## - static: Static node list ## - mcast: IP Multicast ## - dns: DNS A Record ## - etcd: etcd ## - k8s: Kubernetes ## ## Default: manual cluster.discovery = manual ## Enable cluster autoheal from network partition. ## ## Value: on | off ## ## Default: on cluster.autoheal = on ## Autoclean down node. A down node will be removed from the cluster ## if this value > 0. ## ## Value: Duration ## -h: hour, e.g. '2h' for 2 hours ## -m: minute, e.g. '5m' for 5 minutes ## -s: second, e.g. '30s' for 30 seconds ## ## Default: 5m cluster.autoclean = 5m ##-------------------------------------------------------------------- ## Cluster using static node list ## Node list of the cluster. ## ## Value: String ## cluster.static.seeds = emqx1@127.0.0.1,emqx2@127.0.0.1 ##-------------------------------------------------------------------- ## Cluster using IP Multicast. ## IP Multicast Address. ## ## Value: IP Address ## cluster.mcast.addr = 239.192.0.1 ## Multicast Ports. ## ## Value: Port List ## cluster.mcast.ports = 4369,4370 ## Multicast Iface. ## ## Value: Iface Address ## ## Default: 0.0.0.0 ## cluster.mcast.iface = 0.0.0.0 ## Multicast Ttl. ## ## Value: 0-255 ## cluster.mcast.ttl = 255 ## Multicast loop. ## ## Value: on | off ## cluster.mcast.loop = on ##-------------------------------------------------------------------- ## Cluster using DNS A records. ## DNS name. ## ## Value: String ## cluster.dns.name = localhost ## The App name is used to build 'node.name' with IP address. ## ## Value: String ## cluster.dns.app = emqx ##-------------------------------------------------------------------- ## Cluster using etcd ## Etcd server list, seperated by ','. ## ## Value: String ## cluster.etcd.server = http://127.0.0.1:2379 ## The prefix helps build nodes path in etcd. Each node in the cluster ## will create a path in etcd: v2/keys/// ## ## Value: String ## cluster.etcd.prefix = emqxcl ## The TTL for node's path in etcd. ## ## Value: Duration ## ## Default: 1m, 1 minute ## cluster.etcd.node_ttl = 1m ## Path to a file containing the client's private PEM-encoded key. ## ## Value: File ## cluster.etcd.ssl.keyfile = {{ platform_etc_dir }}/certs/client-key.pem ## The path to a file containing the client's certificate. ## ## Value: File ## cluster.etcd.ssl.certfile = {{ platform_etc_dir }}/certs/client.pem ## Path to the file containing PEM-encoded CA certificates. The CA certificates ## are used during server authentication and when building the client certificate chain. ## ## Value: File ## cluster.etcd.ssl.cacertfile = {{ platform_etc_dir }}/certs/ca.pem ##-------------------------------------------------------------------- ## Cluster using Kubernetes ## Kubernetes API server list, seperated by ','. ## ## Value: String ## cluster.k8s.apiserver = http://10.110.111.204:8080 ## The service name helps lookup EMQ nodes in the cluster. ## ## Value: String ## cluster.k8s.service_name = emqx ## The address type is used to extract host from k8s service. ## ## Value: ip | dns | hostname ## cluster.k8s.address_type = ip ## The app name helps build 'node.name'. ## ## Value: String ## cluster.k8s.app_name = emqx ## The suffix added to dns and hostname get from k8s service ## ## Value: String ## cluster.k8s.suffix = pod.cluster.local ## Kubernetes Namespace ## ## Value: String ## cluster.k8s.namespace = default