consul/agent/pool
Derek Menteer 6baf695cd9
[NET-6459] Fix issue with wanfed lan ip conflicts. (#19503)
Fix issue with wanfed lan ip conflicts.

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.
2023-11-06 08:47:12 -06:00
..
conn.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
peek.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
peek_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
peeked_conn.go wan federation via mesh gateways (#6884) 2020-03-09 15:59:02 -05:00
pool.go [NET-6459] Fix issue with wanfed lan ip conflicts. (#19503) 2023-11-06 08:47:12 -06:00