kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Set persistent IDs for servers when using consistent hashing

Open ezhan-codaio opened this issue 2 years ago • 3 comments

Currently, when consistent hashing is used for load balancing, the server picked by different HAProxy instances can be different, making consistent hashing ineffective.

There should be a way to set a unique id to server when consistent hashing is enabled (http://docs.haproxy.org/2.8/configuration.html#5.2-id). The id can be based on a stable property of the pod (e.g. name, IP, or UID). Using the IPv4 address is probably the easiest, otherwise can hash the value and truncate it to 32 bits.

ezhan-codaio avatar Sep 07 '23 23:09 ezhan-codaio

Hi @ezhan-codaio, We'll have a look at your request and possibly decide to integrate this feature in our roadmap. Thanks for sharing this idea.

ivanmatmati avatar Oct 03 '23 07:10 ivanmatmati

Hi @ezhan-codaio , we'll have to investigate further on this idea as it has many technical implications to check.

ivanmatmati avatar Oct 11 '23 09:10 ivanmatmati