Merge pull request #4979 from zmstone/chore-config-rpc-connections-default-to-one
chore(conf): change default number of gen_rpc connections to 1
This commit is contained in:
commit
69ef5cbdc3
|
@ -343,8 +343,8 @@ rpc.port_discovery = stateless
|
||||||
## Number of outgoing RPC connections.
|
## Number of outgoing RPC connections.
|
||||||
##
|
##
|
||||||
## Value: Interger [0-256]
|
## Value: Interger [0-256]
|
||||||
## Defaults to NumberOfCPUSchedulers / 2 when set to 0
|
## Default = 1
|
||||||
#rpc.tcp_client_num = 0
|
#rpc.tcp_client_num = 1
|
||||||
|
|
||||||
## RCP Client connect timeout.
|
## RCP Client connect timeout.
|
||||||
##
|
##
|
||||||
|
|
|
@ -376,7 +376,7 @@ end}.
|
||||||
|
|
||||||
{translation, "gen_rpc.tcp_client_num", fun(Conf) ->
|
{translation, "gen_rpc.tcp_client_num", fun(Conf) ->
|
||||||
case cuttlefish:conf_get("rpc.tcp_client_num", Conf) of
|
case cuttlefish:conf_get("rpc.tcp_client_num", Conf) of
|
||||||
0 -> max(1, erlang:system_info(schedulers) div 2);
|
0 -> 1; %% keep allowing 0 for backward compatibility
|
||||||
V -> V
|
V -> V
|
||||||
end
|
end
|
||||||
end}.
|
end}.
|
||||||
|
|
Loading…
Reference in New Issue