chore(cluster): add new type for dns auto cluster
Signed-off-by: zhanghongtong <rory-z@outlook.com>
This commit is contained in:
parent
d305111929
commit
f46084438b
|
@ -101,6 +101,11 @@ cluster.autoclean = 5m
|
|||
## Value: String
|
||||
## cluster.dns.app = emqx
|
||||
|
||||
## Type of dns record.
|
||||
##
|
||||
## Value: Value: a | srv
|
||||
## cluster.dns.type = a
|
||||
|
||||
##--------------------------------------------------------------------
|
||||
## Cluster using etcd
|
||||
|
||||
|
|
|
@ -96,6 +96,11 @@
|
|||
{datatype, string}
|
||||
]}.
|
||||
|
||||
{mapping, "cluster.dns.type", "ekka.cluster_discovery", [
|
||||
{datatype, {enum, [a, srv]}},
|
||||
{default, a}
|
||||
]}.
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
%% Cluster using etcd
|
||||
|
||||
|
@ -171,7 +176,8 @@
|
|||
{loop, cuttlefish:conf_get("cluster.mcast.loop", Conf, true)}];
|
||||
(dns) ->
|
||||
[{name, cuttlefish:conf_get("cluster.dns.name", Conf)},
|
||||
{app, cuttlefish:conf_get("cluster.dns.app", Conf)}];
|
||||
{app, cuttlefish:conf_get("cluster.dns.app", Conf)},
|
||||
{type, cuttlefish:conf_get("cluster.dns.type", Conf)}];
|
||||
(etcd) ->
|
||||
SslOpts = fun(Conf) ->
|
||||
Options = cuttlefish_variable:filter_by_prefix("cluster.etcd.ssl", Conf),
|
||||
|
|
Loading…
Reference in New Issue