Skip to content

Hashing load balancer routes to only one host #1798

@akonradi

Description

@akonradi

The hashing load balancer distributes the hosts in a cluster on a 64-bit ring. When no hash is produced by the hash policy for a route, the load balancer selects a random number as the hash. The 16 high bits of the random number are uniformly 0, because the generator only produces 48-bit values. Because the high 10 bits of the hash are the ones actually used, this results in exactly one host being selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions