Commit 687d1051 authored by tangwei's avatar tangwei

修改配置

parent 76d63469
......@@ -40,7 +40,16 @@ public class RedissonConfig {
Config config = new Config();
ClusterServersConfig clusterServersConfig = config.useClusterServers()
.setScanInterval(200) // 集群状态扫描间隔时间,单位是毫秒
//设置集群扫描时间
.setScanInterval(5000) // 集群状态扫描间隔时间,单位是毫秒
.setTimeout(30000)
//主节点线程池数量
.setMasterConnectionPoolSize(10)
//从节点线程池数量
.setSlaveConnectionPoolSize(30)
.setIdleConnectionTimeout(10000)
.setSlaveConnectionMinimumIdleSize(20)
.setMasterConnectionMinimumIdleSize(20)
.addNodeAddress(clusterNodes.toArray(new String[clusterNodes.size()]));
clusterServersConfig.setCheckSlotsCoverage(false);
// 设置密码
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment