#Expose cluster through F5

2 messages · Page 1 of 1 (latest)

dense cobalt
#

Hey people, hope you're doing well... I have a question, hope someone can help me... Is it recommendable expose a cluster of Redis through a F5? I mean, is a good option use a load balance for a cluster?

gilded zinc
#

Hi David, this depends on the type of cluster. If you are using a Community Edition Cluster, then you should use a cluster-aware client library because of the way how hash-based sharding works. The client library usually sends a CLUSTER SLOTS over to at least one of the endpoints and then receives a hash slot range to node endpoint mapping. The client then establishes a connection to each of the endpoints. When you perform an operation, then such a client applies a hash function on the key of a command (e.g., GET <key>) to determine the hash slot, then looks the corresponding hash-slot range up and sends the command to the endpoint that is assigned to that slot range. Given this hash-based sharding approach, simple load balancers are typically not a good fit because they don't know anything about the hash slot to endpoint mapping.