Closed dil-atiwari closed 9 months ago
Could you bump the redis-clustering gem version to the latest?
@supercaracal If I try to add the latest then I get the below error
Could not find compatible versions
Because redis-clustering >= 5.0.8 depends on redis = 5.0.8
and sidekiq >= 6.5.6, < 7.0.0.beta1 depends on redis >= 4.5.0, < 5,
redis-clustering >= 5.0.8 is incompatible with sidekiq >= 6.5.6, < 7.0.0.beta1.
And because sidekiq-pro >= 5.5.5, < 6.0.0.beta1 depends on sidekiq >= 6.5.6, < 7.A,
redis-clustering >= 5.0.8 is incompatible with sidekiq-pro >= 5.5.5, < 6.0.0.beta1.
So, because Gemfile depends on sidekiq-pro ~> 5.5.5
and Gemfile depends on redis-clustering = 5.0.8,
version solving has failed.
Since the above dependencies, you can't use redis-clustering gem because you use sidekiq-pro versioned with 5.5.8
. The redis gem had supported features of cluster mode until 4.x
and it was decoupled to redis and redis-clustering since 5.x
. Although I'm not familiar with sidekiq, it seems that sidekiq 7.x
might be compatible with redis-clustering.
@supercaracal I cannot use sidekiq 7.x as it doesn;t support redis-namespace. Is there any workaround with the existing gems which i can downgrade to make it compatible for my usecase?
I think there is no workarounds. Since sidekiq owner says, you can't use Redis cluster.
@supercaracal I was able to make it work with the below configuration for one of my microservice. For one of my project we have Rails 7 and ruby 3 and there it doesn't work
Rails 6.1.7.6 Ruby 2.7.8 Sidekiq 6.0.7 sidekiq-pro 5.0.1 redis-namespace 1.7.0 redis-client 0.18.0 redis-clustering 5.0.0.beta3
You can specify the older version of the redis-cluster-client gem in your Gemfile. The redis-clustering gem doesn't specify the strict version range for the redis-cluster-client gem. It's recommended to use the latest version of the both. But your case, you're obliged to use older versions of the redis-cluster-client gem. Anyway, since older sidekiq doesn't support Redis cluster, I don't know the combination works or not.
I have added redis-clustering gem and when I start the rails server I am getting below error. I couldn't find any open or closed issue. Any help is appreciated thanks
Ruby - 3.0.6 Rails - 7.0.6
Gemfile
Gemfile.lock