Set a lower bound for session_max to 1024 (which is a guess) or 2x
ring_size (another guess).
This commit is contained in:
parent
7a7350be42
commit
169a9663b2
1 changed files with 5 additions and 1 deletions
|
@ -103,7 +103,11 @@ start(Partition, Config) ->
|
||||||
SessionMax =
|
SessionMax =
|
||||||
case app_helper:get_env(riak_core, ring_creation_size) of
|
case app_helper:get_env(riak_core, ring_creation_size) of
|
||||||
undefined -> 1024;
|
undefined -> 1024;
|
||||||
RingSize -> RingSize
|
RingSize ->
|
||||||
|
case RingSize < 512 of
|
||||||
|
true -> 1024;
|
||||||
|
false -> RingSize * 2
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
WTConfig =
|
WTConfig =
|
||||||
case proplists:lookup(wt, Config) of
|
case proplists:lookup(wt, Config) of
|
||||||
|
|
Loading…
Reference in a new issue