Set a lower bound for session_max to 1024 (which is a guess) or 2x

ring_size (another guess).
This commit is contained in:
Gregory Burd 2013-03-12 10:29:33 -04:00
parent 7a7350be42
commit 169a9663b2

View file

@ -103,7 +103,11 @@ start(Partition, Config) ->
SessionMax =
case app_helper:get_env(riak_core, ring_creation_size) of
undefined -> 1024;
RingSize -> RingSize
RingSize ->
case RingSize < 512 of
true -> 1024;
false -> RingSize * 2
end
end,
WTConfig =
case proplists:lookup(wt, Config) of