Replies: 1 comment 3 replies
-
Correct. The RedisClient is not cluster aware, so might run into such (and other) issues when connecting to a cluster.
I think there is an issue with your networking setup. The driver attempts to access the Have in mind that the topology refresh depends on the data in the Redis server, that could be seen as a result to running the I have a hunch that |
Beta Was this translation helpful? Give feedback.
-
Hi
I've create a Rate Limiter using Bucket4j where i want to store my buckets in a Redis DB.
But I am having problems connecting to the Redis Cluster DB.
When i use RedisClient like this:
My application connects to the Redis Cluster DB, but im receiving the following error sometimes, not all the time:
Im thinking the reason for it giving me the MOVED error is because i connecting to a Redis Cluster using
RedisClient
and notRedisClusterClient
?I've then changed my code to create a
RedisClusterClient
object, like this:With my application.properties file looking like this:
But then im getting the following errors:
Im not sure what im doing wrong.
If you need more logs or have questions about the setup, ask and i'll try and provide answers.
They are both in the same K8s cluster.
They are running in their own namespace (application is using namespace: rest, redis cluster db is using namespace: redis-ratelimiter)
I've tried using both the service URL, pods url, spring.data.redis.host & spring.data.redis.port, spring.data.redis.cluster.nodes.
I've tried using both lettuce-core 6.4.1.RELEASE and the newest 6.5.2.RELEASE
Maybe the problem lies in the Bucket4j Library?
Beta Was this translation helpful? Give feedback.
All reactions