-
Notifications
You must be signed in to change notification settings - Fork 945
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
Why does lecttuce send lua script load command to all nodes (including replicas) in redis cluster? #2853
Comments
Hey @hungphan227 , this was already discussed in #720. Could you go over the discussion there and let me know if you still have questions / concerns on the topic? |
I have read #720 before but it did not explicitly explain why lecttuce has to send lua script load command to replicas. Isn't replicating lua script to replicas (from master) done by redis cluster itself? |
They are not replicated, as far as I know. From the official documentation :
|
Oh tks a lot :)) |
I tried scriptLoad method of Lecttuce with Redis cluster (3 master, 2 replicas, 1 replica down)
Expected: scriptLoad method run successfully
Actual: An error occurred that informed lecttuce could not connect to one node in the cluster
It seems that Lecttuce has to send the command to all the nodes in the redis cluster. If a replica node is down, the request would fail.
As I understand, Redis has a mechanism to replicate everything from master to replica. So why does lecttuce have to send lua script load command to all nodes (including replicas) in redis cluster?
The text was updated successfully, but these errors were encountered: