GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — Reset busy counters after triggering an auto-scale-up decision by normanmaurer · Pull Request #17538 · netty/netty Conversation
Member
Motivation: AutoScalingEventExecutorChooserFactory suspends idle executors and Modifications:
Result: A single sustained busy executor scales the group up exactly once per
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: 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.
franz1981
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. All reactions
isaacrivriv
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense to me, not sure how that was missed for the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: 25c8c2c Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #17547 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…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]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.