Skip to content

Set listener qps and burst#4558

Open
nikola-jokic wants to merge 1 commit into
masterfrom
nikola-jokic/listener-ratelimiter
Open

Set listener qps and burst#4558
nikola-jokic wants to merge 1 commit into
masterfrom
nikola-jokic/listener-ratelimiter

Conversation

@nikola-jokic

Copy link
Copy Markdown
Collaborator

Since the size of the batch is currently 50, and the 50 should not be a huge number for requests/s, set the QPS to 50 with burst 100 in the listener client.

Fixes #4554

Copilot AI review requested due to automatic review settings July 6, 2026 13:46
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Hello! Thank you for your contribution.

Please review our contribution guidelines to understand the project's testing and code conventions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the ghalistener scaler’s in-cluster Kubernetes client configuration to reduce client-go throttling during high job throughput, aligning expected throughput with the listener batch size behavior discussed in #4554.

Changes:

  • Set Kubernetes client-go rate limit defaults in the listener scaler to QPS=50 and Burst=100.
  • Reformat the “Ephemeral runner set scaled” log call (no functional change).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +61 to +62
conf.QPS = 50
conf.Burst = 100
@@ -216,7 +219,8 @@ func (w *Scaler) HandleDesiredRunnerCount(ctx context.Context, count int) (int,
return 0, fmt.Errorf("could not patch ephemeral runner set , patch JSON: %s, error: %w", string(mergePatch), err)
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.

Listener Kubernetes Client throttling at 5 QPS

2 participants