Skip to content

Commit

Permalink
Set session max based on ring size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Burd committed Mar 12, 2013
1 parent f5a5208 commit 7a7350b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/riak_kv_wiredtiger_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -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"},
Expand Down

0 comments on commit 7a7350b

Please sign in to comment.