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
I have been using Mimir for my project and i have set up a Redis cluster using Bitnami Redis-cluster.
I configured the below end points in my values.yaml (added below as part of the Configuration options)
file for Redis Cluster (It is a cluster architecture and NOT Standalone or Sentinel)
i have deployed the Redis cluster in one of the Kubernetes cluster environment.
here is a pod details (Original IPs and namespace got redacted.)
using an internal pod, i can connect to the redis-cluster as below
kubectl run --namespace myproject redis-cluster-client --rm --tty -i --restart='Never' \
--env REDIS_PASSWORD=$REDIS_PASSWORD \
--image docker.io/bitnami/redis-cluster:7.4.0-debian-12-r1 -- bash
$ redis-cli -c -h redis-cluster -a $REDIS_PASSWORD
redis-cluster:6379> SET NAME TCS
-> Redirected to slot [1450] located at 12.1.10.54:6379
OK
12.1.10.54:6379:6379> SET AGE 45
-> Redirected to slot [9895] located at 12.1.5.63:6379
OK
To Reproduce
Steps to reproduce the behavior:
However, when configured the below redis cluster service endpoints in mimir, i got below issues.
ts=2024-09-11T11:28:29.223914275Z caller=mimir.go:882 level=info msg="Application started"
ts=2024-09-11T11:28:47.172010345Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:28:47.176867817Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-5.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:28:47.191118469Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-2.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:28:47.284307569Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:28:59.135353685Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:28:59.139842592Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-5.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:28:59.151816083Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-3.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:28:59.162099888Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:29:58.957752913Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:29:58.96193791Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-4.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:29:59.041628636Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-1.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:29:59.049628623Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:30:10.922485224Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:30:10.924259216Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="got 4 elements in cluster info address, expected 2 or 3" items=0
ts=2024-09-11T11:30:10.945555701Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-3.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:30:10.955025742Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:30:22.886677908Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:30:22.957847044Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-1.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:30:22.976489253Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-3.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:30:22.9929137Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:31:22.707781151Z caller=gateway.go:322 level=info msg="synchronizing TSDB blocks for all users" reason=ring-change
ts=2024-09-11T11:31:22.712186122Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-4.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:31:22.724181797Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="dial tcp: lookup test-redis-cluster-myproject-4.test-redis-cluster-myproject-headless: no such host" items=0
ts=2024-09-11T11:31:22.789579568Z caller=gateway.go:328 level=info msg="successfully synchronized TSDB blocks for all users" reason=ring-change
Below configured the POD IP address in Mimir's metadata_cache.
ts=2024-09-12T16:53:44.817834546Z caller=redis_client.go:263 level=warn name=metadata-cache msg="failed to mget items from redis" err="got 4 elements in cluster info address, expected 2 or 3" items=0
Configuration 4:
By configuring only the host names as node names, got the below error.
ok thanks for the updates @dimitarvdimitrov
Please notify once the support for Redis cluster is available from Mimir, can we expect this in the near future? or is it in the road map? for Mimir development.
Describe the bug
I have been using Mimir for my project and i have set up a Redis cluster using Bitnami Redis-cluster.
I configured the below end points in my values.yaml (added below as part of the Configuration options)
file for Redis Cluster (It is a cluster architecture and NOT Standalone or Sentinel)
i have deployed the Redis cluster in one of the Kubernetes cluster environment.
here is a pod details (Original IPs and namespace got redacted.)
using an internal pod, i can connect to the redis-cluster as below
To Reproduce
Steps to reproduce the behavior:
However, when configured the below redis cluster service endpoints in mimir, i got below issues.
Configuration 1:
output
Perform **kubectl logs -f myproject-mimir-store-gateway-zone-a-0 -n mynamespace **
Below configured the POD IP address in Mimir's metadata_cache.
Configuration 2:
Perform **kubectl logs -f myproject-mimir-store-gateway-zone-a-0 -n mynamespace **
Configuration 3:
By configuring only the FQDNs with kubernetes standard format, got the below error
i have configured this end point on mimir side. (Pls refer the end of this thread (bitnami/charts#29102 (comment))
here is the redis_client.go file
mimir/vendor/github.com/grafana/dskit/cache/redis_client.go
Line 250 in 5c60e89
Perform **kubectl logs -f myproject-mimir-store-gateway-zone-a-0 -n mynamespace **
Configuration 4:
By configuring only the host names as node names, got the below error.
Perform **kubectl logs -f myproject-mimir-store-gateway-zone-a-0 -n mynamespace **
Expected behavior
Redis cluster should store the metrics as a key value pair (in our case meta data cache).
Environment
Additional Context
How to enable Cluster mode for Redis under Mimir?
Assuming it supports the Redis cluster, How to configure the Service end points for Redis cluster for Mimir?
Test case details (integrating Mimir with Redis cluster) or any documentation with examples of Configuring the
Redis cluster endpoints for Mimir.
The text was updated successfully, but these errors were encountered: