Commit cffb9cd
fix: makes gRPC's MaxRecvMsgSize for the extension server (envoyproxy#1291)
**Description**
Makes go's gRPC `MaxRecvMsgSize` configurable for the extension server,
whose default value is 4MB
https://pkg.go.dev/google.golang.org/grpc#MaxRecvMsgSize
When the gRPC message payload from the xDS server exceeds 4MB, it is
rejected by the extension server and the below errors is observed on
envoy-gateway:
```
2025-10-07T10:26:44.625Z ERROR xds runner/runner.go:245 failed to translate xds ir {"runner": "xds", "error": "rpc error: code = ResourceExhausted desc = grpc: received message larger than max (6683527 vs. 4194304)"}
2025-10-07T10:26:44.625Z ERROR watchable message/watchutil.go:86 observed an error {"runner": "xds", "error": "rpc error: code = ResourceExhausted desc = grpc: received message larger than max (6683527 vs. 4194304)"}
```
This PR makes it configurable via the command-line flag `maxRecvMsgSize`
and keeps its default at 4MB.
**Related Issues/PRs (if applicable)**
Fixes envoyproxy#1293
Related PR to make gRPC's message sizes configurable, though that was
for the external processor gRPC server:
envoyproxy#1213
**Special notes for reviewers (if applicable)**
Note that this applies to the xDS resource messages sent from the xDS
server to the extension server. The payload of these messages increases
with the size/count of the config resources.
---------
Signed-off-by: Owayss Kabtoul <[email protected]>
Signed-off-by: Hrushikesh Patil <[email protected]>1 parent dba1989 commit cffb9cd
File tree
4 files changed
+20
-2
lines changed- cmd/controller
- manifests/charts/ai-gateway-helm
- templates
4 files changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 | | |
150 | 157 | | |
151 | 158 | | |
| |||
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
| 225 | + | |
218 | 226 | | |
219 | 227 | | |
220 | 228 | | |
| |||
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
274 | | - | |
| 282 | + | |
275 | 283 | | |
276 | 284 | | |
277 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
0 commit comments