Fix #754 - "-heart" option for EMQ 2.0
This commit is contained in:
parent
a908c0b9d8
commit
06f5c8e2b7
|
@ -11,9 +11,10 @@ node.cookie = emq_dist_cookie
|
||||||
## SMP support: enable, auto, disable
|
## SMP support: enable, auto, disable
|
||||||
node.smp = auto
|
node.smp = auto
|
||||||
|
|
||||||
## TODO: -heart Heartbeat monitoring of an Erlang runtime system
|
## vm.args: -heart
|
||||||
## Values: on | off
|
## Heartbeat monitoring of an Erlang runtime system
|
||||||
## node.heartbeat = off
|
## Value should be 'on' or comment the line
|
||||||
|
## node.heartbeat = on
|
||||||
|
|
||||||
## Enable kernel poll
|
## Enable kernel poll
|
||||||
node.kernel_poll = on
|
node.kernel_poll = on
|
||||||
|
|
|
@ -24,10 +24,17 @@
|
||||||
|
|
||||||
%% @doc http://erlang.org/doc/man/heart.html
|
%% @doc http://erlang.org/doc/man/heart.html
|
||||||
{mapping, "node.heartbeat", "vm_args.-heart", [
|
{mapping, "node.heartbeat", "vm_args.-heart", [
|
||||||
{datatype, {enum, [enable, auto, disable]}},
|
{datatype, flag},
|
||||||
hidden
|
hidden
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
{translation, "vm_args.-heart", fun(Conf) ->
|
||||||
|
case cuttlefish:conf_get("node.heartbeat", Conf) of
|
||||||
|
true -> "";
|
||||||
|
false -> cuttlefish:invalid("should be 'on' or comment the line!")
|
||||||
|
end
|
||||||
|
end}.
|
||||||
|
|
||||||
%% @doc Enable Kernel Poll
|
%% @doc Enable Kernel Poll
|
||||||
{mapping, "node.kernel_poll", "vm_args.+K", [
|
{mapping, "node.kernel_poll", "vm_args.+K", [
|
||||||
{default, on},
|
{default, on},
|
||||||
|
|
Loading…
Reference in New Issue