Commit Graph

6 Commits

Author SHA1 Message Date
Kuba Tużnik 879c6a84a4 DRA: migrate all of CA to use the new internal NodeInfo/PodInfo
The new wrapper types should behave like the direct schedulerframework
types for most purposes, so most of the migration is just changing
the imported package.

Constructors look a bit different, so they have to be adapted -
mostly in test code. Accesses to the Pods field have to be changed
to a method call.

After this, the schedulerframework types are only used in the new
wrappers, and in the parts of simulator/ that directly interact with
the scheduler framework. The rest of CA codebase operates on the new
wrapper types.
2024-11-05 16:43:43 +01:00
Rahul Rangith 29de500906
Handle intentionally empty grpc BestOptions 2024-10-04 16:14:06 -04:00
Aleksandra Gacek 4470430007 Fix klog formating directives in cluster-autoscaler package. 2023-11-07 16:13:57 +01:00
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