Commit 5c42a80
committed
broker: size List response chunks to fit gRPC's 32KB buffer pool tier
Reduce maxJournalsPerListResponse from 1000 to 25 so that marshaled
ListResponse messages stay within the 32KB gRPC buffer pool tier.
At typical journal sizes (~750-1300 bytes per ListResponse_Journal), 25
journals produces messages of ~19-32KB. Previously, larger chunks
produced messages > 32 KB, landing in the 1MB buffer pool tier. When
many List watch streams sent responses concurrently, this caused
significant memory spikes from pooled 1MB buffers.1 parent cff796b commit 5c42a80
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
0 commit comments