Skip to content

Commit 3c15858

Browse files
committed
ConnectionPool: update poolConfig
Dvir give the config in another branch, just copy & paste it here
1 parent 203a4a0 commit 3c15858

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/scala/com/redislabs/provider/redis/ConnectionPool.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ object ConnectionPool {
1515
val pool = pools.getOrElseUpdate(re,
1616
{
1717
val poolConfig: JedisPoolConfig = new JedisPoolConfig();
18-
poolConfig.setMaxTotal(128)
18+
poolConfig.setMaxTotal(250)
1919
poolConfig.setMaxIdle(32)
20-
poolConfig.setMinEvictableIdleTimeMillis(5000)
21-
poolConfig.setTimeBetweenEvictionRunsMillis(2500)
20+
poolConfig.setTestOnBorrow(false)
21+
poolConfig.setTestOnReturn(false)
22+
poolConfig.setTestWhileIdle(false)
23+
poolConfig.setMinEvictableIdleTimeMillis(60000)
24+
poolConfig.setTimeBetweenEvictionRunsMillis(30000)
25+
poolConfig.setNumTestsPerEvictionRun(-1)
2226
new JedisPool(poolConfig, re.host, re.port, re.timeout, re.auth, re.dbNum)
2327
}
2428
)

0 commit comments

Comments
 (0)