New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redis sentinel throw "Timeout connecting to server" error #2290
Comments
seems i have the same issue! |
I get the same error |
Same issue here, has anybody found a workaround? |
Got same issue, need help |
hi bro, did you got a solution? |
Have you tried to increase the value of |
Thanks @nerg4l |
I'm also experiencing this problem. Has anyone found a solution? edit: Sending a giant timeout works for me: from django.conf import settings
from redis import Sentinel
def get_redis_client():
sentinel = Sentinel(settings.REDIS_SENTINELS, socket_timeout=1000)
client = sentinel.master_for(settings.REDIS_MASTER_NAME, socket_timeout=1000)
return client edit: turns out this param units are milliseconds, not seconds |
Version:
redis-py version 4.3.4
redis server version 6.2.7
redis sentinel version 6.2.7
redis server Platform:
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-21-cloud-amd64
Architecture: x86-64
docker: Docker version 20.10.17, build 100c701
redis image: docker official image
redis client Platform:
Python 3.9.13 on Windows 10 virtual environment
Description:
1 master, 1 replica, 3 sentinel all in one host.
discover_master and discover_slaves can get right result, but master.set throw error "timed out"
redis-cli -p 26379
127.0.0.1:26379> SENTINEL master mymaster
127.0.0.1:26379> SENTINEL replicas mymaster
127.0.0.1:26379> SENTINEL sentinels mymaster
The text was updated successfully, but these errors were encountered: