Closed codedigger-pl closed 7 years ago
Sorry, I never worked with Sentinel. Maybe you should ask at Stackoverflow, since this question seems not related to ws4redis.
Thank you. It looks like it is not possible (without hacks): Publisher uses own connection pool https://github.com/jrief/django-websocket-redis/blob/master/ws4redis/publisher.py#L15 while Subscriber is using connection pool from uwsgi: https://github.com/jrief/django-websocket-redis/blob/master/ws4redis/wsgi_server.py#L92 and https://github.com/jrief/django-websocket-redis/blob/master/ws4redis/wsgi_server.py#L48
Hi all
I have a question: how can I make it work with Redis cluster monitored by Sentinel? My current uwsgi script:
where REDIS_SENTINEL_URL is a list of tuples with sentinels, REDIS_NAME is a cluster name. It works fine when master is up all the time. When master goes down Sentinels recognize it and some slave is promoted to be a new master. But app is still using old master for connection.
How can I configure this?