113 lines
2.8 KiB
YAML
113 lines
2.8 KiB
YAML
# 单节点
|
|
---
|
|
singleServerConfig:
|
|
idleConnectionTimeout: 10000
|
|
connectTimeout: 10000
|
|
timeout: 3000
|
|
retryAttempts: 3
|
|
retryInterval: 1500
|
|
password: null
|
|
subscriptionsPerConnection: 5
|
|
clientName: null
|
|
address: "redis://172.19.1.251:6379"
|
|
subscriptionConnectionMinimumIdleSize: 1
|
|
subscriptionConnectionPoolSize: 50
|
|
connectionMinimumIdleSize: 32
|
|
connectionPoolSize: 64
|
|
database: 0
|
|
dnsMonitoringInterval: 5000
|
|
threads: 0
|
|
nettyThreads: 0
|
|
codec: !<org.redisson.codec.JsonJacksonCodec> {}
|
|
"transportMode": "NIO"
|
|
|
|
# 哨兵
|
|
---
|
|
sentinelServersConfig:
|
|
idleConnectionTimeout: 10000
|
|
connectTimeout: 10000
|
|
timeout: 3000
|
|
retryAttempts: 3
|
|
retryInterval: 1500
|
|
password: null
|
|
subscriptionsPerConnection: 5
|
|
clientName: null
|
|
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
|
|
slaveSubscriptionConnectionMinimumIdleSize: 1
|
|
slaveSubscriptionConnectionPoolSize: 50
|
|
slaveConnectionMinimumIdleSize: 32
|
|
slaveConnectionPoolSize: 64
|
|
masterConnectionMinimumIdleSize: 32
|
|
masterConnectionPoolSize: 64
|
|
readMode: "SLAVE"
|
|
sentinelAddresses:
|
|
- "redis://127.0.0.1:26379"
|
|
- "redis://127.0.0.1:26389"
|
|
masterName: "mymaster"
|
|
database: 0
|
|
threads: 0
|
|
nettyThreads: 0
|
|
codec: !<org.redisson.codec.JsonJacksonCodec> {}
|
|
"transportMode": "NIO"
|
|
|
|
# 主从
|
|
---
|
|
masterSlaveServersConfig:
|
|
idleConnectionTimeout: 10000
|
|
connectTimeout: 10000
|
|
timeout: 3000
|
|
retryAttempts: 3
|
|
retryInterval: 1500
|
|
failedAttempts: 3
|
|
password: null
|
|
subscriptionsPerConnection: 5
|
|
clientName: null
|
|
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
|
|
slaveSubscriptionConnectionMinimumIdleSize: 1
|
|
slaveSubscriptionConnectionPoolSize: 50
|
|
slaveConnectionMinimumIdleSize: 32
|
|
slaveConnectionPoolSize: 64
|
|
masterConnectionMinimumIdleSize: 32
|
|
masterConnectionPoolSize: 64
|
|
readMode: "SLAVE"
|
|
slaveAddresses:
|
|
- "redis://127.0.0.1:6381"
|
|
- "redis://127.0.0.1:6380"
|
|
masterAddress: "redis://127.0.0.1:6379"
|
|
database: 0
|
|
threads: 0
|
|
nettyThreads: 0
|
|
codec: !<org.redisson.codec.JsonJacksonCodec> {}
|
|
"transportMode": "NIO"
|
|
|
|
# 集群
|
|
---
|
|
clusterServersConfig:
|
|
idleConnectionTimeout: 10000
|
|
connectTimeout: 10000
|
|
timeout: 3000
|
|
retryAttempts: 3
|
|
retryInterval: 1500
|
|
password: null
|
|
subscriptionsPerConnection: 5
|
|
clientName: null
|
|
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
|
|
slaveSubscriptionConnectionMinimumIdleSize: 1
|
|
slaveSubscriptionConnectionPoolSize: 50
|
|
slaveConnectionMinimumIdleSize: 32
|
|
slaveConnectionPoolSize: 64
|
|
masterConnectionMinimumIdleSize: 32
|
|
masterConnectionPoolSize: 64
|
|
readMode: "SLAVE"
|
|
nodeAddresses:
|
|
- "redis://127.0.0.1:7004"
|
|
- "redis://127.0.0.1:7001"
|
|
- "redis://127.0.0.1:7000"
|
|
scanInterval: 1000
|
|
threads: 0
|
|
nettyThreads: 0
|
|
codec: !<org.redisson.codec.JsonJacksonCodec> {}
|
|
"transportMode": "NIO"
|
|
|
|
|