Skip to content

Use 2 EventLoops when running our tests by default - #17567

Merged
normanmaurer merged 2 commits into
4.2from
num_eventloops_tests
Sep 22, 2026
Merged

normanmaurer merged 2 commits into
4.2from
num_eventloops_tests

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

We create a lot of EventLoopGroups with very short life-time when running our tests. By default these use 2 * cpu's EventLoops. This is quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds

Motivation:

We create a lot of EventLoopGroups with very short life-time when running our tests. By default these use 2 * cpu's EventLoops. This is quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds
@normanmaurer normanmaurer added this to the 4.2.19.Final milestone Sep 21, 2026
@normanmaurer normanmaurer added needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. labels Sep 21, 2026

@chrisvest chrisvest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If CI is happy, I'm happy.

@testlens-app

testlens-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 74f5dda
▶️ Tests: 471202 executed
⚪️ Checks: 25/25 completed


Learn more about TestLens at testlens.app/docs.

@normanmaurer
normanmaurer merged commit 9f11eb6 into 4.2 Sep 22, 2026
26 checks passed
@normanmaurer
normanmaurer deleted the num_eventloops_tests branch September 22, 2026 06:37
@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17586

@netty-project-bot

Copy link
Copy Markdown
Contributor

Could not create auto-port PR.
Got conflicts when cherry-picking onto 4.1.

@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 22, 2026
@normanmaurer

Copy link
Copy Markdown
Member Author

Port for 4.1 #17587

normanmaurer added a commit that referenced this pull request Sep 22, 2026
…7587)

Motivation:

We create a lot of EventLoopGroups with very short life-time when
running our tests. By default these use 2 * cpu's EventLoops. This is
quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds
normanmaurer added a commit that referenced this pull request Sep 22, 2026
…7586)

Auto-port of #17567 to 5.0
Cherry-picked commit: 9f11eb6

---
Motivation:

We create a lot of EventLoopGroups with very short life-time when
running our tests. By default these use 2 * cpu's EventLoops. This is
quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds

Co-authored-by: Norman Maurer <[email protected]>
@normanmaurer normanmaurer removed the needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. label Oct 16, 2026
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
netty#17587)

Motivation:

We create a lot of EventLoopGroups with very short life-time when
running our tests. By default these use 2 * cpu's EventLoops. This is
quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds
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.

4 participants