Open Supporterino opened 1 year ago
Answered this in that discussion post. It is related to https://github.com/go-redis/redis/issues/2085. For redis version v7 we should use go-redis version v9 instead while we are using go-redis v8.
For this usecase we should upgrade go-redis library. But it looks like it is not backward compatible so if we upgrade it it breaks redis 6.x.
Temporarly I downgraded your redis cluister to 6.2.8 since it is only used for thanos. Now it is working like a charm. Ty for your help. It might be useful to make a little note at the redis cache section maybe
Why does the Store Gateway works w/ Redis 7 and the Query Frontend does not?
Would it be an option to use this Redis client (https://github.com/rueian/rueidis) via the cacheutils
internal package?
Yeah it would be great to use the same rueidis client in query frontend redis cache as well.
@yeya24 I'm working on a PR targeting the use of rueidis
also as Redis client in the query-frontend, but something puzzles me with regard to the Redis configs. I wonder whether this issue is the right place to discuss or rather WIP PR.
Hi,
Recently tried to enable redis cache for query-frontend component - it failed with this error:
{"caller":"redis_cache.go:75","err":"ERR unknown command 'select', with args beginning with: '1' ","level":"error","msg":"failed to get from redis","name":"redis","ts":"2023-06-07T15:58:53.129616978Z"}
@douglascamata suggested there might be incompatibility between client and server, so I tried these redis versions but none of them succeeded (same error):
I was unable to test with <6.0 because to operator I'm using to deploy redis to k8s is not supporting such old versions ;)
Thanos 0.31.0
After some back and forth with @michalschott in Slack, he found out that most of his problems come from using a Redis Cluster for HA.
So for anyone out there using Redis Cluster: you have to leave the DB unset, otherwise it'll fail with an error like so: "ERR SELECT is not allowed in cluster mode"
, which comes from the DB selection command.
I get errors using a v6 redis cluster with query frontend even with the db unset. Example errors
msg="failed to get from redis" name=redis err="MOVED 10784 10.0.200.62:6379"
msg="failed to put to redis" name=redis err="EXECABORT Transaction discarded because of previous errors."
This occurs when pointing query frontend at the same AWS Elasticache cluster I use for the store component. Happy to open a separate issue if needed.
Hey folks, can you try again after https://github.com/thanos-io/thanos/pull/6520 got merged? Should be fixed, I believe.
Hey folks, can you try again after #6520 got merged? Should be fixed, I believe.
not working for me with exact same config for store gateway
Discussed in https://github.com/thanos-io/thanos/discussions/6013