Set session max based on ring size.

This commit is contained in:
Gregory Burd 2013-03-11 20:34:21 -04:00
parent f5a5208b1b
commit 7a7350be42

View file

@ -100,6 +100,11 @@ start(Partition, Config) ->
case AppStarted of
ok ->
CacheSize = size_cache(64, Config),
SessionMax =
case app_helper:get_env(riak_core, ring_creation_size) of
undefined -> 1024;
RingSize -> RingSize
end,
WTConfig =
case proplists:lookup(wt, Config) of
none ->
@ -117,7 +122,7 @@ start(Partition, Config) ->
[{create, true},
{logging, true},
{transactional, true},
{session_max, 128},
{session_max, SessionMax},
{shared_cache, [{chunk, "64MB"},
{min, "1GB"},
{name, "wt-cache"},