Просмотр исходного кода

Rename node.proto_dist to cluster.proto_dist

GilbertWong 6 лет назад
Родитель
Сommit
ddc25be915
2 измененных файлов с 19 добавлено и 15 удалено
  1. 11 9
      etc/emqx.conf
  2. 8 6
      priv/emqx.schema

+ 11 - 9
etc/emqx.conf

@@ -11,6 +11,16 @@
 ## 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
@@ -251,15 +261,7 @@ node.fullsweep_after = 1000
 ## Value: Log file
 node.crash_dump = {{ platform_log_dir }}/crash.dump
 
-## 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
-node.proto_dist = inet_tcp
+
 
 ## Specify SSL Options in the file if using SSL for Erlang Distribution.
 ##

+ 8 - 6
priv/emqx.schema

@@ -85,6 +85,13 @@
   {datatype, string}
 ]}.
 
+%% @doc The erlang distributed protocol
+{mapping, "cluster.proto_dist", "ekka.proto_dist", [
+  {default, "inet_tcp"},
+  {datatype, {enum, [inet_tcp, inet6_tcp, inet_tls]}},
+  hidden
+]}.
+
 {mapping, "cluster.dns.app", "ekka.cluster_discovery", [
   {datatype, string}
 ]}.
@@ -198,12 +205,7 @@ end}.
   {default, "emqx@127.0.0.1"}
 ]}.
 
-%% @doc The erlang distributed protocol
-{mapping, "node.proto_dist", "ekka.proto_dist", [
-  %{default, "inet_tcp"},
-  {datatype, {enum, [inet_tcp, inet6_tcp, inet_tls]}},
-  hidden
-]}.
+
 
 %% @doc Specify SSL Options in the file if using SSL for erlang distribution
 {mapping, "node.ssl_dist_optfile", "vm_args.-ssl_dist_optfile", [