|
@@ -367,13 +367,7 @@ end}.
|
|
|
{datatype, integer}
|
|
{datatype, integer}
|
|
|
]}.
|
|
]}.
|
|
|
|
|
|
|
|
-%% Default TCP port for outgoing connections
|
|
|
|
|
-{mapping, "rpc.tcp_client_port", "gen_rpc.tcp_client_port", [
|
|
|
|
|
- {default, 5369},
|
|
|
|
|
- {datatype, integer}
|
|
|
|
|
-]}.
|
|
|
|
|
-
|
|
|
|
|
-%% Default TCP port for outgoing connections
|
|
|
|
|
|
|
+%% Number of tcp connections when connecting to RPC server
|
|
|
{mapping, "rpc.tcp_client_num", "gen_rpc.tcp_client_num", [
|
|
{mapping, "rpc.tcp_client_num", "gen_rpc.tcp_client_num", [
|
|
|
{default, 0},
|
|
{default, 0},
|
|
|
{datatype, integer},
|
|
{datatype, integer},
|
|
@@ -451,6 +445,14 @@ end}.
|
|
|
fun(X) -> X >= 0 andalso X < 256 end
|
|
fun(X) -> X >= 0 andalso X < 256 end
|
|
|
}.
|
|
}.
|
|
|
|
|
|
|
|
|
|
+%% Force client to use server listening port, because we do no provide
|
|
|
|
|
+%% per-node listening port manual mapping from configs.
|
|
|
|
|
+%% i.e. all nodes in the cluster should agree to the same
|
|
|
|
|
+%% listening port number.
|
|
|
|
|
+{translation, "gen_rpc.tcp_client_port", fun(_, _, Conf) ->
|
|
|
|
|
+ cuttlefish:conf_get("rpc.tcp_server_port", Conf)
|
|
|
|
|
+end}.
|
|
|
|
|
+
|
|
|
%%--------------------------------------------------------------------
|
|
%%--------------------------------------------------------------------
|
|
|
%% Log
|
|
%% Log
|
|
|
%%--------------------------------------------------------------------
|
|
%%--------------------------------------------------------------------
|