From 2325e8cfb3965e7cb50f97c692ca33fd85b02203 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 20 Feb 2022 19:57:56 +0100 Subject: [PATCH] chore: ensure remsh node name prefix for upgrader for remsh prefixed nodes, ekka pick a random port to listen on instead of following the conventional port mapping rule: ekka listens on 4370 for emqx or emqx0 and 4371 for emqx1 and so on --- bin/install_upgrade.escript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install_upgrade.escript b/bin/install_upgrade.escript index 97548cba8..f88af106d 100755 --- a/bin/install_upgrade.escript +++ b/bin/install_upgrade.escript @@ -365,7 +365,7 @@ start_distribution(TargetNode, NameTypeArg, Cookie) -> make_script_node(Node) -> [Name, Host] = string:tokens(atom_to_list(Node), "@"), - list_to_atom(lists:concat([Name, "_upgrader_", os:getpid(), "@", Host])). + list_to_atom(lists:concat(["remsh_", Name, "_upgrader_", os:getpid(), "@", Host])). %% get name type from arg get_name_type(NameTypeArg) ->