fix: change the default retry_interval of cluster_rpc call to 1min
This commit is contained in:
parent
dd099137f0
commit
f4f263f91e
|
@ -547,7 +547,7 @@ commit_status_trans(Operator, TnxId) ->
|
||||||
mnesia:select(?CLUSTER_COMMIT, [{MatchHead, [Guard], [Result]}]).
|
mnesia:select(?CLUSTER_COMMIT, [{MatchHead, [Guard], [Result]}]).
|
||||||
|
|
||||||
get_retry_ms() ->
|
get_retry_ms() ->
|
||||||
emqx_conf:get(["node", "cluster_call", "retry_interval"], 1000).
|
emqx_conf:get(["node", "cluster_call", "retry_interval"], timer:minutes(1)).
|
||||||
|
|
||||||
maybe_init_tnx_id(_Node, TnxId) when TnxId < 0 -> ok;
|
maybe_init_tnx_id(_Node, TnxId) when TnxId < 0 -> ok;
|
||||||
maybe_init_tnx_id(Node, TnxId) ->
|
maybe_init_tnx_id(Node, TnxId) ->
|
||||||
|
|
|
@ -585,7 +585,7 @@ fields("cluster_call") ->
|
||||||
emqx_schema:duration(),
|
emqx_schema:duration(),
|
||||||
#{
|
#{
|
||||||
desc => ?DESC(cluster_call_retry_interval),
|
desc => ?DESC(cluster_call_retry_interval),
|
||||||
default => "1s"
|
default => "1m"
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
{"max_history",
|
{"max_history",
|
||||||
|
|
Loading…
Reference in New Issue