rmq: redis cluster - CROSSSLOT error
I was trying out the library against a redis cluster. With the last change, I am able to connect to the cluster but when I initiate the consumer I get the following errors - consume error: rmq.ConsumeError (8): CROSSSLOT Keys in request don't hash to the same slot
. I’m guessing we are using keys which get hashed to different slots in the cluster and which is causing this issue.
I haven’t looked at the code in a lot of detail, but I want to know if it worked for @si3nloong since he had raised the last merged PR.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (12 by maintainers)
Hey, quick update: I started working on this today and made good progress. I should be able to open a PR soon.
(Here’s the work in progress branch: 113-redis-cluster-support)
Thank you for your support on this! And thanks to @vearutop too for finishing and releasing this version! 🙌
The main thing to watch out for is to have exactly once queue cleaner instance per queue system (usually exactly one). You should be free to create as many consumers as you like and use as many queues as you like.
@NikhilRyan please try the new
v5.2.0
.Hey, we’re still working on making the tests work with Redis cluster.
Thanks for sharing. Let me test and revert with the update.