From fea52c4ec3e842a179493635d2f5605f7d5937e8 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Mon, 8 Jul 2013 19:45:45 -0400 Subject: [PATCH] Change lower bound for session handles (session_max) to 1024 (upper bound is 8192). --- src/riak_kv_wterl_backend.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/riak_kv_wterl_backend.erl b/src/riak_kv_wterl_backend.erl index 2edffa6..1a38756 100644 --- a/src/riak_kv_wterl_backend.erl +++ b/src/riak_kv_wterl_backend.erl @@ -377,7 +377,11 @@ max_sessions(Config) -> end, Est = RingSize * erlang:system_info(schedulers), case Est > 8192 of - true -> 8192; + true -> + case Est < 1024 of + true -> 1024; + false -> 8192 + end; false -> Est end.