New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Elasticache Redis Clusters OK?: Redis::CommandError (ERR SELECT is not allowed in cluster mode): #3454
Comments
You need to change 12 to 0 in your initializer. |
Thanks MikeP! Simply changing my Redis environment variable to the clustered Redis now gives me this error at the same code location described above:
I started reading about Redis Hash Tags for clusters, but this fix my be in Sidekiq code... Please let me know if you'd like me to submit a new issue. Regards, |
I don't know anything about the CROSSSLOT error. Maybe someone with Elasticache experience knows more. |
@lapygithub Are you using sidekiq-pro or sidekiq-ent? Some features are not compatible with Redis Cluster. Example: https://github.com/mperham/sidekiq/wiki/Reliability#scheduler |
@ryansch : I haven't upgraded and also have not configured advanced features like scheduler. Configuration changes that I have made are to use a named queue (not default), to remove the delayed jobs conflict, port number 6381 and as simple of an async_perform that I could create to enqueue an http call out. |
Just experimented the same problem @lapygithub : did you solve or open a new issue on this point ? |
Once I had it running non-clustered, I've just left it that way. If I get the opportunity to test a config change, I will, but that might be sometime in the future. |
Same error here "heartbeat: CROSSSLOT Keys in request don't hash to the same slot". |
Please see the Using Redis wiki page. I do not recommend using Cluster.
… On Jul 14, 2018, at 05:27, Joris Trooster ***@***.***> wrote:
Same error here "heartbeat: CROSSSLOT Keys in request don't hash to the same slot".
@laurent-dazzl what was your solution? Or did you move away from a clustered AWS ElastiCache configuration as well?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@mperham Redis can support upto 0-15 databases |
In development (MacOSX) the Rails/Sidekiq/Redis setup works correctly.
For QA/Stage/Prod, I've setup an AWS Elasticache Redis cluster (single master/single slave for automated failover).
In this environment, when calling the Sidekiq async worker, the following error is produced:
The stack trace just points to the .perform_async line listed below.
I feel like there is a Rails side configuration that I've missed and in searching found a few non-Heroku config blogs, but none describe anything but the standard Sidekiq Rails side code. See sidekiq.rb below. (BTW, the Redis db '/12' is confusing me too. ;o)
Does Sidekiq support Redis cluster or do you have to setup a non-clustered Redis?
And/Or: What do I need to correct?
Regards,
-MikeL
Calling code:
Ruby version: 2.1.4
Sidekiq / Pro / Enterprise version(s): Sidekiq
Please include your initializer and any error message with the full backtrace.
Are you using an old version?
I believe we are using the latest 4.2.x release (since 5 has been released)
Have you checked the changelog to see if your issue has been fixed in a later version?
I've searched using all the search terms I can think of...
https://github.com/mperham/sidekiq/blob/master/Changes.md
The text was updated successfully, but these errors were encountered: