-
Notifications
You must be signed in to change notification settings - Fork 18
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
CLUSTERDOWN Hash slot not served #1
Comments
another bug. if master goes down, slaves wont reload to get new master ip.
now is this container master, byt slave config will remain |
|
Hi @insekticid for the first issue, i believe it could be linked to, the need to create the redis cluster first. for the second issue @ahfeel raised about this before, and i believe more change needs to be done to the sentinel container. https://github.com/ahfeel/rancher-redis-cluster i think @ahfeel did some great work on making this rancher redis cluster more tolerant when master node goes down. I will try give his repo a test, when i get my rancher server back (i lost my rancher server, as my uni reclaimed our resources 😆 ) |
Hello @insekticid, You can have a look at my images, it's actually a full rewrite to take in account all (hopefully? or at least most) of the down/edge cases. I have been running on them on production for a while now and it's working fine so far. Warning though: It's an automatic master/slave setup with failover etc, NOT A CLUSTER, because redis cluster doesn't support all kind of operations we needed. So I preferred to stick to an automatic and fully working master/slave solution. We have a few high traffic websites running on it and it's working like a breeze so far. Cheers, |
@ahfeel yes, I am using your version for some time ;) but I found strange issue, duno why. |
Do you have experience in running redis on another host than your PHP host before ? Network latency is actually a very tricky pain point. For example on our website we fetch like 40 to 50 cache keys from redis for a given web page. At the beginning we had the redis server on the same host than the PHP server and things were running fast. When distributing the infrastructure, we noticed a huge impact on our web request. This is just the sad reality of network latency, 40/50 times 1ms round trip = 50ms. The solution was to gather around the cache keys we needed and send a MGET to fetch them all at once, everything went back to normal. Let me know if this helps :) |
Hi Shuliyey,
you have done nice work in this package, I have stucked on error CLUSTERDOWN Hash slot not served when I try to write to master
What I am doing wrong?
The text was updated successfully, but these errors were encountered: