GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reset busy counters after triggering an auto-scale-up decision by normanmaurer · Pull Request #17538 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Sep 18, 2026

Copy link
Copy Markdown
Member

Motivation:

AutoScalingEventExecutorChooserFactory suspends idle executors and
resets their busy/idle cycle counters once a scale-down decision is
made, so they need a fresh patience period before triggering another
scaling decision. The scale-up path had no equivalent reset: once an
executor's busy-cycle counter crossed scalingPatienceCycles, it kept
incrementing on every following cycle it remained busy, so the same
executor could keep triggering further scale-ups on its own without
any additional executor becoming busy. This causes the group to
overshoot the number of active executors that the actual load
justifies, and is the cause of intermittent CI failures in
AutoScalingEventExecutorChooserFactoryTest.testScaleUp (e.g. expected
2 active executors but found 3).

Modifications:

  • Track the executors that are consistently busy in a list, mirroring
    the existing consistentlyIdleChildren list, instead of only counting
    them.
  • After using that list to decide on a scale-up, reset the busy and
    idle cycle counters of the contributing executors so each one needs
    another full patience period of sustained load before it can justify
    a further scale-up.

Result:

A single sustained busy executor scales the group up exactly once per
patience period instead of repeatedly ramping up on its own.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer
Reset busy counters after triggering an auto-scale-up decision
25c8c2c
Motivation:

AutoScalingEventExecutorChooserFactory suspends idle executors and
resets their busy/idle cycle counters once a scale-down decision is
made, so they need a fresh patience period before triggering another
scaling decision. The scale-up path had no equivalent reset: once an
executor's busy-cycle counter crossed scalingPatienceCycles, it kept
incrementing on every following cycle it remained busy, so the same
executor could keep triggering further scale-ups on its own without
any additional executor becoming busy. This causes the group to
overshoot the number of active executors that the actual load
justifies, and is the cause of intermittent CI failures in
AutoScalingEventExecutorChooserFactoryTest.testScaleUp (e.g. expected
2 active executors but found 3).

Modifications:

- Track the executors that are consistently busy in a list, mirroring
  the existing consistentlyIdleChildren list, instead of only counting
  them.
- After using that list to decide on a scale-up, reset the busy and
  idle cycle counters of the contributing executors so each one needs
  another full patience period of sustained load before it can justify
  a further scale-up.

Result:

A single sustained busy executor scales the group up exactly once per
patience period instead of repeatedly ramping up on its own.
@normanmaurer normanmaurer added this to the 4.2.19.Final milestone Sep 18, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 18, 2026
franz1981
franz1981 approved these changes Sep 18, 2026
View reviewed changes

@franz1981 franz1981 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Lgtm @isaacrivriv WDYT?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

isaacrivriv reacted with eyes emoji
All reactions
  • 👀 1 reaction
isaacrivriv
isaacrivriv approved these changes Sep 18, 2026
View reviewed changes

@isaacrivriv isaacrivriv left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Makes sense to me, not sure how that was missed for the consistentlyBusyChildren but done for the consistentlyIdleChildren so a similar logic to handle the same issues make sense.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@isaacrivriv

isaacrivriv commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Also this reminds me I have a couple of PRs that I had open almost a year ago relating to the auto scaling work😅
#15797
#15813
any chance we could revisit those to merge them in? I can go ahead and update them as necessary to clean them up since it's been a while...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Sep 18, 2026

Copy link
Copy Markdown
Member Author

@isaacrivriv yes sure.

isaacrivriv reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@testlens-app

testlens-app Bot commented Sep 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 25c8c2c
▶️ Tests: 42877 executed
⚪️ Checks: 29/29 completed


Learn more about TestLens at testlens.app/docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer merged commit 8af38d1 into 4.2 Sep 19, 2026
44 of 45 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
normanmaurer deleted the busy_reset branch September 19, 2026 14:57
@netty-project-bot

netty-project-bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17547

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@netty-project-bot netty-project-bot mentioned this pull request Sep 19, 2026
Auto-port 5.0: Reset busy counters after triggering an auto-scale-up decision #17547
Merged
@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 19, 2026
normanmaurer added a commit that referenced this pull request Sep 20, 2026
@netty-project-bot @normanmaurer
Auto-port 5.0: Reset busy counters after triggering an auto-scale-up …
89e5e85
…decision (#17547)

Auto-port of #17538 to 5.0
Cherry-picked commit: 8af38d1

---
Motivation:

AutoScalingEventExecutorChooserFactory suspends idle executors and
resets their busy/idle cycle counters once a scale-down decision is
made, so they need a fresh patience period before triggering another
scaling decision. The scale-up path had no equivalent reset: once an
executor's busy-cycle counter crossed scalingPatienceCycles, it kept
incrementing on every following cycle it remained busy, so the same
executor could keep triggering further scale-ups on its own without
any additional executor becoming busy. This causes the group to
overshoot the number of active executors that the actual load
justifies, and is the cause of intermittent CI failures in
AutoScalingEventExecutorChooserFactoryTest.testScaleUp (e.g. expected
2 active executors but found 3).

Modifications:

- Track the executors that are consistently busy in a list, mirroring
  the existing consistentlyIdleChildren list, instead of only counting
  them.
- After using that list to decide on a scale-up, reset the busy and
  idle cycle counters of the contributing executors so each one needs
  another full patience period of sustained load before it can justify
  a further scale-up.

Result:

A single sustained busy executor scales the group up exactly once per
patience period instead of repeatedly ramping up on its own.

Co-authored-by: Norman Maurer <[email protected]>
@doom369 doom369 mentioned this pull request Sep 21, 2026
Avoid allocating a SSLEngineResult per wrap / unwrap in SslHandler doom369/netty#6
Draft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@franz1981 franz1981 franz1981 approved these changes
+1 more reviewer
@isaacrivriv isaacrivriv isaacrivriv approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.19.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@normanmaurer @isaacrivriv @netty-project-bot @franz1981
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.