martinrusev / django-redis-sessions

Session backend for Django that stores sessions in a Redis database
BSD 3-Clause "New" or "Revised" License
494 stars 106 forks source link

redis-py-cluster - cluster support in Kubernetes #68

Open voarsh2 opened 3 years ago

voarsh2 commented 3 years ago

I tried this on a simple redis install in Kubernetes with an environment variable and worked flawlessly. I came across redis-py-cluster pip module.

When I try cluster with kubernetes I get this sort of error: https://github.com/andymccurdy/redis-py/issues/931#issuecomment-559826354

I see there's mentions of sentinel and hardcoding members, but I'm not sure how this plays into Kubernetes with Statefulsets - they don't have IP's, each member is defined by their node id. E.G. redis-cluster0/1/2/3 etc

chayim commented 2 years ago

You probably want to see this PR that we're considering for redis-py 4.1.0.