Commit Graph

3 Commits

Author SHA1 Message Date
Benjamin Pineau ea845d3508 gRPC expander: allow realistic server responses, and log errors
Expander requests' payloads can be rather heavy under upscale pressure,
as they're compounding all candidates options and unschedulable pods
that could fit each options. Expander responses are a subset of the
requests' payload items.

We're allowing ourself to send arbitrary payload sizes (gRPC
`defaultClientMaxSendMessageSize` is `math.MaxInt32`), but we're prone
to drop expander servers responses to the floor, due to the `4MiB`
`defaultClientMaxReceiveMessageSize`.

The arbitrary 128MiB value is meant to be huge (enough to support eg.
several dozen fat 1MiB pods) but not unlimited. Let me know if you'd
rather see that turned to be a command line flag, or an other value.

Also logging the possible gRPC call errors, as that of great help to
diagnose that kind of issues.
2023-01-16 15:40:28 +01:00
Evan Sheng a2b24e005f add starter code and readme for grpc expander usage 2022-02-16 12:36:37 -08:00
Evan Sheng 4504f55485 Add grpc expander and tests 2022-02-16 12:34:06 -08:00