Handling MOVED with Redis Sentinel #2304
-
Hello there! I'm trying to add support for Sentinel for one of my open source projects. I know I'm doing something wrong but I'm getting a RedisCommandExecutionException every time I try to write. My project basically bulk writes data to Redis. What am I missing? Thank you in advance! I used this as my guide First attempt
Second Attempt
Exception thrown.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please use |
Beta Was this translation helpful? Give feedback.
-
Thank you! Ok that makes sense. I'm not familiar with Sentinel or Cluster. Basically you're saying that it's either For sake of completeness this is the container I was using. It has support for cluster which seems to work fine.
It generated these configs sentinel configs
Redis configs
|
Beta Was this translation helpful? Give feedback.
-
Awesome! I’ll look there! Thank you!
…On Thu, Jan 26, 2023 at 1:47 AM Mark Paluch ***@***.***> wrote:
I'm not familiar with Redis docker images, in Lettuce I use a Makefile
that spins up various setups tailored to our testing needs.
—
Reply to this email directly, view it on GitHub
<#2304 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTHAC6DVNPS5I75DEKDH3WUITX5ANCNFSM6AAAAAAUFK2J6U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
MOVED
replies are only used with Redis Cluster. Your cluster nodes report also that they are using Cluster mode:Please use
RedisClusterClient
as the use of Redis Sentinel with Cluster doesn't make any sense.