fix: change the default retry_interval of cluster_rpc call to 1min

This commit is contained in:
Shawn 2022-06-13 22:52:51 +08:00
parent dd099137f0
commit f4f263f91e
2 changed files with 2 additions and 2 deletions

View File

@ -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) ->

View File

@ -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",