dcacace-goog opened a new pull request, #41938:
URL: https://github.com/apache/beam/pull/41938
Stacked on #41937; only the last commit is new.
GetWork stream budgeting ignored work already queued or executing on the
worker, so streams kept requesting work while bundles were backed up in
`BoundedQueueExecutor`.
Behind Streaming Engine and `streaming_engine_getwork_budgeting` (off by
default):
- Feed active/queued load (or full capacity while the memory monitor reports
thrashing) into `EvenGetWorkBudgetDistributor`, which clamps streams to their
in-flight credit once load reaches 50% and caps per-stream refills so idle
fan-out backends can't hoard budget.
- Skip the blocking `waitForResources("GetWork")` on Streaming Engine
receive callbacks, lower the default bytes budget to 10% of heap, and raise
hard caps to 2x target items / target bytes + one GetWork fetch.
- Refresh the budget on work arrival and commit completion;
`SingleSourceWorkerHarness` stream fields are now `@GuardedBy`.
Not experiment-gated (stream accounting): `GrpcDirectGetWorkStream` /
`GrpcGetWorkStream` keep the signed in-flight balance so an oversized WorkItem
that overdraws Windmill's signed budget is repaid on the next top-up (a budget
clamped to 0 does not repay); `GrpcDirectGetWorkStream.setBudget()` tops up
immediately; `GrpcGetWorkStream` rounds its 50% threshold up and keeps clamped
budgets across reconnects.
addresses #41928
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]