emq(V2) 홈페이지 프로필 emq.conf 자세히 (1) ------------ 클러스터 구성

3120 단어 emq.confemq

1 클러스터 이름


cluster.name = emqcl

2 클러스터 자동 검색 정책


##  
##
##  : 
## - manual:  
## - static:  
## - mcast:  IUDP  
## - dns:    DNS A  
## - etcd:     etcd  
## - k8s:    Kubernetes  
## 
##  : manual
cluster.discovery = manual

2.1 manual 클러스터 수동 생성

,  ./bin/emqttd_ctl join   :

2.2 static 노드 목록 기반 자동 클러스터

, :


cluster.discovery = static

##--------------------------------------------------------------------
## Cluster with static node list

cluster.static.seeds = [email protected],[email protected]

2.3 mcast 그룹 방송 기반 자동 군집

UDP :


cluster.discovery = mcast

##--------------------------------------------------------------------
## Cluster with multicast

cluster.mcast.addr = 239.192.0.1

cluster.mcast.ports = 4369,4370

cluster.mcast.iface = 0.0.0.0

cluster.mcast.ttl = 255

cluster.mcast.loop = on

2.4 DNS A 레코드 기반 자동 클러스터

DNS A :


cluster.discovery = dns

##--------------------------------------------------------------------
## Cluster with DNS

cluster.dns.name = localhost

cluster.dns.app  = ekka

2.5 etcd 기반 자동 클러스터

 `etcd`_  :


cluster.discovery = etcd

##--------------------------------------------------------------------
## Cluster with Etcd

cluster.etcd.server = http://127.0.0.1:2379

cluster.etcd.prefix = emqcl

cluster.etcd.node_ttl = 1m

2.6 Kubernetes 기반 자동 클러스터

`Kubernetes`_  :


cluster.discovery = k8s

##--------------------------------------------------------------------
## Cluster with k8s

cluster.k8s.apiserver = http://10.110.111.204:8080

cluster.k8s.service_name = ekka

## Address Type: ip | dns
cluster.k8s.address_type = ip

## The Erlang application name
cluster.k8s.app_name = ekka

3 클러스터 치유 활성화


##  
##
## Value: on | off
##
## Default: on
cluster.autoheal = on

4 노드 자동 지우기

:


##  
##   > 0 , .
##
## Value: Duration  
## -h: hour,   '2h'   2 
## -m: minute,   '5m'   5 
## -s: second,   '30s'   30 
##
## Default: 5m
cluster.autoclean = 5m

5 EMQ 노드 및 쿠키

Erlang/OTP Erlang ( ) , Erlang ( ) , 。 Erlang ( ) Cookie 。Erlang 、 Cookie:


##  .
## Default: [email protected]
node.name = [email protected]

##   Cookie
node.cookie = emqsecretcookie

6 Erlang 가상 시스템 매개 변수

EMQ Erlang/OTP TCPv4, TCPv6 TLS :

좋은 웹페이지 즐겨찾기