Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Bitnami Redis Sentinel & Sidekiq on Kubernetes

$
0
0

So right now we are trying to get a Bitnami Redis Sentinel cluster working, together with our Rails app + Sidekiq.

We tried different things, but it's not really clear to us, how we should specify the sentinels for Sidekiq (crutial part is here, that the sentinel nodes are READ ONLY, so we cannot use them for sidekiq, since job states get written).

Since on Kubernetes there are only 2 services available: "redis" and "redis-headless" (not sure how they differ?) - how can I specify the sentinels like this:

Sidekiq.configure_server do |config|  config.redis = {    url: "redis",    sentinels: [      { host: "?", port: 26379 } # why do we have to specify it here seperately, since we should be able to get a unified answer via a service, or?      { host: "?", port: 26379 }        { host: "?", port: 26379 }     }  }end

Would be nice if someone can shed some light on this. As far as I understood, the bitnami redis sentiel only returns the IP of the master and the application has to handle the corresponding writes to this master then (https://github.com/bitnami/charts/tree/master/bitnami/redis#master-replicas-with-sentinel) - but I really don't understand on how to do this with sidekiq?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>