I'm trying to configure multiple connection strings for a single ConnectionPool
in redis-py
. Our Redis nodes are sitting behind a reverse proxy (let's say NGINX), of which we have multiple for increased redundancy. The idea is to initialize the ConnectionPool
in redis-py
with a list of all the URLs in case one goes down. Is this possible?
multi-master connections are not possible in redis-py
nor in any other Redis client, I'm aware of. You would have to implement this on your own.
A workaround could be to use DNS load balancing: https://www.nginx.com/resources/glossary/dns-load-balancing
Regards, Martin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.