Replies: 1 comment 1 reply
-
Hello @Neil660 Have you tried following the instructions that describe how to use Redis Cluster w/ Spring (e.g. https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#cluster)? The error suggests that you're still using the "wrong" connection type afaict. Also, please note that this repository is about Redis the project, whereas clients and frameworks should be discussed in their respective repos (e.g. https://github.com/spring-projects/spring-boot). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm connecting to a redis 7.0.8 cluster in springboot version 2.2.9.RELEASE, which is deployed on my local virtual machine CentOS7, but it keeps reporting an error:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Redis connection failed; io.lettuce.core.RedisConnectionException: Unable to connect to [RedisURI [host='XXX', port=7010], ......]] with root cause.
I've tried using the same version of redis to deploy a standalone redis on my VM, using springboot it is possible to connect and use it, not sure why the cluster doesn't work, is it a version incompatibility? I don't have a firewall on my virtual machine, the host and virtual machine network interoperability.
Beta Was this translation helpful? Give feedback.
All reactions