Skip to content

Set persistent IDs for servers when using consistent hashing #574

Open
@ezhan-codaio

Description

@ezhan-codaio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinvestigationmore investigation needed on our side

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions