Set session max based on ring size.
This commit is contained in:
parent
f5a5208b1b
commit
7a7350be42
1 changed files with 6 additions and 1 deletions
|
@ -100,6 +100,11 @@ start(Partition, Config) ->
|
||||||
case AppStarted of
|
case AppStarted of
|
||||||
ok ->
|
ok ->
|
||||||
CacheSize = size_cache(64, Config),
|
CacheSize = size_cache(64, Config),
|
||||||
|
SessionMax =
|
||||||
|
case app_helper:get_env(riak_core, ring_creation_size) of
|
||||||
|
undefined -> 1024;
|
||||||
|
RingSize -> RingSize
|
||||||
|
end,
|
||||||
WTConfig =
|
WTConfig =
|
||||||
case proplists:lookup(wt, Config) of
|
case proplists:lookup(wt, Config) of
|
||||||
none ->
|
none ->
|
||||||
|
@ -117,7 +122,7 @@ start(Partition, Config) ->
|
||||||
[{create, true},
|
[{create, true},
|
||||||
{logging, true},
|
{logging, true},
|
||||||
{transactional, true},
|
{transactional, true},
|
||||||
{session_max, 128},
|
{session_max, SessionMax},
|
||||||
{shared_cache, [{chunk, "64MB"},
|
{shared_cache, [{chunk, "64MB"},
|
||||||
{min, "1GB"},
|
{min, "1GB"},
|
||||||
{name, "wt-cache"},
|
{name, "wt-cache"},
|
||||||
|
|
Loading…
Reference in a new issue