Commit 4399726
authored
outbound: Mock the original destination address in ingress-mode (#942)
The ingress-mode outbound proxy currently does not work as expected:
resolutions are performed for each unique endpoint so that a service
with 10 endpoints would manifest as 10 distinct balancers (with 20
resolutions).
While we should ultimately rework the outbound stack to have target
types that prevent this problem (i.e. by removing the original
destination address from the Logical target type), this change
implements a hack to avoid the observed cardinality issues: In
ingress-mode, the original destination address is now mocked out with an
IP address of 0.0.0.0 so that only a single cache entry is created per
logical destination.1 parent 77e2016 commit 4399726
2 files changed
+20
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
177 | 184 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
194 | 201 | | |
195 | 202 | | |
196 | 203 | | |
| 204 | + | |
| 205 | + | |
197 | 206 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 207 | + | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments