Skip to content

Uneven distribution of connections #787

@albertasi

Description

@albertasi

Hello,

The getbyname/2 function changes the resolver’s address list by calling lists:usort/1. This removes duplicates and reorders the addresses, which breaks dns randomness.
In Kubernetes, Service A record returns all pod IPs with randomized order for basic load spreading. Sorting the list removes this randomness, so clients repeatedly connect to the same pod IP instead of distributing requests across all of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions