Ericsson / ered

An Erlang client library for Valkey/Redis Cluster
MIT License
11 stars 6 forks source link

Avoid sending CLUSTER SLOTS to unavailable nodes #19

Closed zuiderkwast closed 1 year ago

zuiderkwast commented 1 year ago

Adds a set of 'reconnecting' nodes, which are not yet considered 'down', just temporarily lost connection.

Don't send CLUSTER SLOTS to any node which is reconnecting or has a full command queue.

Also send CLUSTER SLOTS to a random node, since we may send multiple async CLUSTER SLOTS before we get a reply for the first one, so we don't want the same node over and over.