Skip to content

Backport of [NET-6459] Fix issue with wanfed lan ip conflicts. into release/1.15.x#19521

Merged
hc-github-team-consul-core merged 1 commit intorelease/1.15.xfrom
backport/derekm/NET-6459/wanfed-oom/needlessly-premium-sculpin
Nov 6, 2023
Merged

Backport of [NET-6459] Fix issue with wanfed lan ip conflicts. into release/1.15.x#19521
hc-github-team-consul-core merged 1 commit intorelease/1.15.xfrom
backport/derekm/NET-6459/wanfed-oom/needlessly-premium-sculpin

Conversation

@hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #19503 to be assessed for backporting due to the inclusion of the label backport/1.15.

The below text is copied from the body of the original PR.


Prior to this commit, the connection pools were unaware which datacenter the connection was associated with. This meant that any time servers with overlapping LAN IP addresses and node shortnames existed, they would be incorrectly co-located in the same pool. Whenever this occurred, the servers would get stuck in an infinite loop of forwarding RPCs to themselves (rather than the intended remote DC) until they eventually run out of memory.

Most notably, this issue can occur whenever wan federation through mesh gateways is enabled.

This fix adds extra metadata to specify which DC the connection is associated with in the pool.


Overview of commits

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved Consul Bot automated PR

@hc-github-team-consul-core hc-github-team-consul-core merged commit 502a425 into release/1.15.x Nov 6, 2023
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/derekm/NET-6459/wanfed-oom/needlessly-premium-sculpin branch November 6, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants