https://zhuanlan.zhihu.com/p/539267747
通过直连模式访问Redis开源版,Tair集群实例_云数据库 Tair(兼容 Redis®)(Tair)-阿里云帮助中心
Redis exception; nested exception is io.lettuce.core.RedisException: io.lettuce,core.RedisException:
org.springframework.data.redis.RedisSvstemException:
java.lang.IllegalArgumentException: Comnection to 10.10.79.230:32463 not allowed, This connection point is not known in the cluster view
spring:
redis:
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
修改配置
1.配置自动刷新
spring:
redis:
cluster:
refresh:
adaptive: true
period: 30000 # 30秒自动刷新一次
2、关闭“验证集群节点成员资格开关”,关闭方式如下:
spring:
redis:
cluster:
validate-cluster-node-membership: false