修改redis集群连接地址
This commit is contained in:
@@ -61,16 +61,16 @@
|
||||
<constructor-arg index="1" value="${redis.cluster.port3}"></constructor-arg>
|
||||
</bean>
|
||||
<bean class="redis.clients.jedis.HostAndPort">
|
||||
<constructor-arg index="0" value="${redis.cluster.host1}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port4}"></constructor-arg>
|
||||
<constructor-arg index="0" value="${redis.cluster.host2}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port1}"></constructor-arg>
|
||||
</bean>
|
||||
<bean class="redis.clients.jedis.HostAndPort">
|
||||
<constructor-arg index="0" value="${redis.cluster.host1}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port5}"></constructor-arg>
|
||||
<constructor-arg index="0" value="${redis.cluster.host2}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port2}"></constructor-arg>
|
||||
</bean>
|
||||
<bean class="redis.clients.jedis.HostAndPort">
|
||||
<constructor-arg index="0" value="${redis.cluster.host1}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port6}"></constructor-arg>
|
||||
<constructor-arg index="0" value="${redis.cluster.host2}"></constructor-arg>
|
||||
<constructor-arg index="1" value="${redis.cluster.port3}"></constructor-arg>
|
||||
</bean>
|
||||
</set>
|
||||
</constructor-arg>
|
||||
|
||||
@@ -168,11 +168,9 @@ redis.timeout=100000
|
||||
#一般当此值设置过大时,容易报:Too many Cluster redirections
|
||||
redis.maxRedirects=3
|
||||
|
||||
#3A-redis集群配置
|
||||
redis.cluster.host1=192.168.10.205
|
||||
redis.cluster.port1:7031
|
||||
redis.cluster.port2:7032
|
||||
redis.cluster.port3:7033
|
||||
redis.cluster.port4:7034
|
||||
redis.cluster.port5:7035
|
||||
redis.cluster.port6:7036
|
||||
#3A-redis集群配置,如果需要执行数据同步需要在集群中执行LPUSH SyncRedisToCluster "1"
|
||||
redis.cluster.host1=192.168.10.192
|
||||
redis.cluster.host2=192.168.10.193
|
||||
redis.cluster.port1=7001
|
||||
redis.cluster.port2=7002
|
||||
redis.cluster.port3=7003
|
||||
|
||||
Reference in New Issue
Block a user