channels_redis icon indicating copy to clipboard operation
channels_redis copied to clipboard

Use cluster-aware redis client

Open dimbleby opened this issue 1 month ago • 2 comments

Running against Azure Managed Redis with its default clustering policy "OSSCluster" we see failures with redis.exceptions.MovedError

Apparently the solution should be to use a cluster-aware client, as in from redis.cluster import RedisCluster etc

(See also: https://learn.microsoft.com/en-nz/answers/questions/5612078/having-issues-with-redis-clustering-on-azure-manag)

dimbleby avatar Nov 09 '25 12:11 dimbleby

switching to policy "EnterpriseCluster" works around.

I see that #381 asks for similar.

dimbleby avatar Nov 09 '25 12:11 dimbleby

if there would be a plan to add cluster support, i might be able to do the work

tho in valeky-py, which is a fork of redis-py, this issue exists https://github.com/issues/created?issue=valkey-io%7Cvalkey-py%7C223

i would guess the same issue applies to redis-py, should investigate

amirreza8002 avatar Nov 09 '25 19:11 amirreza8002