You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
redis - type ClusterIP with endpoints pointing to all replicas. Due to round robin routing to backend pods, this can be used as a read endpoint but not as a write endpoint (correct me if wrong)
redis-headless - headless service with endpoints to all replicas. Can this be used for REDIS_URL, and how?
redis-master- Service that points to the current master and is updated on failovers. This currently works with REDIS_URL=redis-master:6379
Using REDIS_TYPE=single and REDIS_URL=redis-master:6379 service works. But on failover, it takes a few seconds for it complete and for redis-master to point to newly elected master. During this time these errors appear in ratelimit logs:
caught error during call: failed to decode pipeline CmdAction 'INCRBY' with keys [ratelimit_authority_…]: EOF”
The docs suggest using REDIS_TYPE=sentinel with a comma delimited REDIS_URL=<master>,<hostname>:<port>,<hostname>:<port> but it's not clear to me how to populate that list.
What is the correct setup for REDIS_URL in sentinel mode?
Is the failover downtime of a few seconds expected?
The text was updated successfully, but these errors were encountered:
I've deployed Redis using the bitnami helm-chart in sentinel mode.
It deploys 3 k8s Service objects:
redis
- type ClusterIP with endpoints pointing to all replicas. Due to round robin routing to backend pods, this can be used as a read endpoint but not as a write endpoint (correct me if wrong)redis-headless
- headless service with endpoints to all replicas. Can this be used for REDIS_URL, and how?redis-master
- Service that points to the current master and is updated on failovers. This currently works withREDIS_URL=redis-master:6379
Using
REDIS_TYPE=single
andREDIS_URL=redis-master:6379
service works. But on failover, it takes a few seconds for it complete and forredis-master
to point to newly elected master. During this time these errors appear in ratelimit logs:The docs suggest using
REDIS_TYPE=sentinel
with a comma delimitedREDIS_URL=<master>,<hostname>:<port>,<hostname>:<port>
but it's not clear to me how to populate that list.What is the correct setup for REDIS_URL in sentinel mode?
Is the failover downtime of a few seconds expected?
The text was updated successfully, but these errors were encountered: