Change lower bound for session handles (session_max) to 1024 (upper bound is 8192).

This commit is contained in:
Gregory Burd 2013-07-08 19:45:45 -04:00
parent ac835f7617
commit fea52c4ec3

View file

@ -377,7 +377,11 @@ max_sessions(Config) ->
end,
Est = RingSize * erlang:system_info(schedulers),
case Est > 8192 of
true -> 8192;
true ->
case Est < 1024 of
true -> 1024;
false -> 8192
end;
false -> Est
end.