bbangert / beaker

WSGI middleware for sessions and caching
https://beaker.readthedocs.org/
Other
517 stars 147 forks source link

Can't connect to several nodes and/or in cluster mode #235

Closed Millefeuille42 closed 5 months ago

Millefeuille42 commented 5 months ago

I'm using Beaker via pyramid_beaker for Tracim, but I'm encountering issues connecting to Redis clusters. Specifically, I'm getting a redis.exceptions.ResponseError: MOVED error. This problem can be circumvented by using the RedisCluster class introduced in redis-py 4.1.0. Additionally, connecting to multiple nodes simultaneously isn't supported.

To address this, a possible solution would be to implement an ext:redis_cluster driver in Beaker that allows for multiple nodes in the URL parameter, such as "redis://node-1:6379/0,redis://node-2:6379/0".

amol- commented 5 months ago

Fixed by #236