Skip to content
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

Set persistent IDs for servers when using consistent hashing #574

Open
ezhan-codaio opened this issue Sep 7, 2023 · 2 comments
Open

Set persistent IDs for servers when using consistent hashing #574

ezhan-codaio opened this issue Sep 7, 2023 · 2 comments
Labels
enhancement New feature or request investigation more investigation needed on our side

Comments

@ezhan-codaio
Copy link

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.

@ivanmatmati ivanmatmati added the enhancement New feature or request label Sep 8, 2023
@ivanmatmati
Copy link
Collaborator

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 ivanmatmati added the investigation more investigation needed on our side label Oct 11, 2023
@ivanmatmati
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigation more investigation needed on our side
Projects
None yet
Development

No branches or pull requests

2 participants