[GH-ISSUE #138] [FEATURE_REQUEST] Add support for Redis Cluster mode #1056

Closed
opened 2026-03-07 22:04:50 +03:00 by kerem · 6 comments
Owner

Originally created by @zhouyang8304 on GitHub (Apr 21, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/138

Originally assigned to: @hibiken on GitHub.

startJob.Enqueue enqueue QTTMemberID:702303,OutKey:user_main-coin_to_sub_702303_1587398400 Error:ERR 'EVALSHA' command keys must in same slot

Dequeue error: ERR Error running script (call to f_119a32ad4f4ac4f23fba1b8be91aacd2948feb88): @user_script:4: @user_script: 4: Lua script attempted to access a non local key in a cluster node

Originally created by @zhouyang8304 on GitHub (Apr 21, 2020). Original GitHub issue: https://github.com/hibiken/asynq/issues/138 Originally assigned to: @hibiken on GitHub. startJob.Enqueue enqueue QTTMemberID:702303,OutKey:user_main-coin_to_sub_702303_1587398400 Error:ERR 'EVALSHA' command keys must in same slot Dequeue error: ERR Error running script (call to f_119a32ad4f4ac4f23fba1b8be91aacd2948feb88): @user_script:4: @user_script: 4: Lua script attempted to access a non local key in a cluster node
kerem 2026-03-07 22:04:50 +03:00
Author
Owner

@hibiken commented on GitHub (Apr 21, 2020):

@zhouyang8304 thank you for opening an issue!

Are you trying to use Asynq with Redis cluster?

<!-- gh-comment-id:617181544 --> @hibiken commented on GitHub (Apr 21, 2020): @zhouyang8304 thank you for opening an issue! Are you trying to use Asynq with Redis **cluster**?
Author
Owner

@zhouyang8304 commented on GitHub (Apr 21, 2020):

yes
im use Asynq on Redis cluster
get error
Error:ERR 'EVALSHA' command keys must in same slot
How to solve the error

<!-- gh-comment-id:617184519 --> @zhouyang8304 commented on GitHub (Apr 21, 2020): yes im use Asynq on Redis cluster get error Error:ERR 'EVALSHA' command keys must in same slot How to solve the error
Author
Owner

@zhouyang8304 commented on GitHub (Apr 21, 2020):

redis version 5.0.5

<!-- gh-comment-id:617184830 --> @zhouyang8304 commented on GitHub (Apr 21, 2020): redis version 5.0.5
Author
Owner

@hibiken commented on GitHub (Apr 21, 2020):

I see. Asynq currently doesn't support Redis cluster.
It currently supports Single Node Redis or Redis Sentinels.

I need to investigate how to make it work for Redis cluster. Is it an absolute requirement for you to use cluster mode? If so, I can prioritize this bug.

<!-- gh-comment-id:617186154 --> @hibiken commented on GitHub (Apr 21, 2020): I see. Asynq currently doesn't support Redis cluster. It currently supports **Single Node Redis** or **Redis Sentinels**. I need to investigate how to make it work for Redis cluster. Is it an absolute requirement for you to use cluster mode? If so, I can prioritize this bug.
Author
Owner

@zhouyang8304 commented on GitHub (Apr 21, 2020):

ok thanks

<!-- gh-comment-id:617189739 --> @zhouyang8304 commented on GitHub (Apr 21, 2020): ok thanks
Author
Owner

@hibiken commented on GitHub (Apr 21, 2020):

I'll change this to a feature request. Please let me know if this is a blocker for you :)

<!-- gh-comment-id:617191519 --> @hibiken commented on GitHub (Apr 21, 2020): I'll change this to a feature request. Please let me know if this is a blocker for you :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1056
No description provided.