eredis_cluster
eredis_cluster copied to clipboard
query block
i found query would blocking, when one slot or node crash , because you refresh slots map synchronous how about let refresh asynchronous and let query return fail immediately?
i try to make refresh be a event , and deal it in a event process, and cast the result to monitor. do you have some advice for me?Or do you agree with me? i will make PR when it stable
i found query would blocking, when one slot or node crash , because you refresh slots map synchronous how about let refresh asynchronous and let query return fail immediately?
hello, that's exactly what I'm doing in our use case, also I found the retry https://github.com/adrienmo/eredis_cluster/blob/master/src/eredis_cluster.erl#L178 may be too many, I set it to 2.
thank you for your reply. i try to make refresh be a event , cast the event to a new event process to deal the refresh map, and send the result to monitor's state. how about this idea?
thank you for your reply. i try to make refresh be a event , cast the event to a new event process to deal the refresh map, and send the result to monitor's state. how about this idea?
almost the same with my modification, just to be clear, I'm not the maintainer of this repo, I just modified it a bit and is still testing