redis报错Comnection to xxxx not allowed, This connection point is not known in the clust

https://zhuanlan.zhihu.com/p/539267747

​​​​​​​springboot连接redis集群报:Connection to 172.23.7.168:6379 not allowed. This connection point is not known in the cluster view - OrcHome

通过直连模式访问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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值