alibaba / jetcache

JetCache is a Java cache framework.
Apache License 2.0
4.96k stars 1.03k forks source link

当redis某个节点发生故障无法连接,导致项目无法启动 #855

Open zenonding opened 5 months ago

zenonding commented 5 months ago

如异常,Redis无法创建连接,会导致整个项目无法启动,有什么办法可以避免? ERROR [restartedMain] org.springframework.boot.SpringApplication [856] -| Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisLettuceAutoInit' defined in class path resource [com/alicp/jetcache/autoconfigure/RedisLettuceAutoConfiguration.class]: Invocation of init method failed; nested exception is io.lettuce.core.RedisConnectionException: Unable to establish a connection to Redis Cluster