Skip to content

fix: honor provider batch max size#1755

Draft
comtalyst wants to merge 1 commit into
mainfrom
eukritos/provider-batch-max-size-hard-cap
Draft

fix: honor provider batch max size#1755
comtalyst wants to merge 1 commit into
mainfrom
eukritos/provider-batch-max-size-hard-cap

Conversation

@comtalyst

@comtalyst comtalyst commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

(AI-generated)

Description

Honor the provider batch max size as a hard cap. When a same-key batch is already full and another request arrives before the background loop drains it, enqueue dispatches the full batch and places the new request in a fresh batch. This prevents same-key instance create bursts from producing one provider header batch larger than configured.

How was this change tested?

  • go test ./pkg/utils/batcher ./pkg/providers/azclient/aksmachinesheaderbatch -count=1

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note

NONE

Co-Authored-By: Claude <noreply@anthropic.com>
@comtalyst comtalyst force-pushed the eukritos/provider-batch-max-size-hard-cap branch from f9c8562 to f9cd0e2 Compare June 29, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant