Skip to content

[ISSUE #10462] Optimize thread pool sizes#10472

Open
lizhimins wants to merge 1 commit into
apache:developfrom
lizhimins:feature/10462-threadpool
Open

[ISSUE #10462] Optimize thread pool sizes#10472
lizhimins wants to merge 1 commit into
apache:developfrom
lizhimins:feature/10462-threadpool

Conversation

@lizhimins

Copy link
Copy Markdown
Member

What is the purpose of the change

Part of #10462

Optimize thread pool sizes for commit and fetch executors to reduce idle thread count while maintaining throughput.

Brief changelog

  • Reduce core pool from max(16, processors*4) to max(4, processors)
  • Set max pool to max(16, processors*2) instead of equal to core
  • Allows idle thread recycling (keepAliveTime=1min was already set)
  • Extract processors variable to avoid repeated Runtime.getRuntime() calls

Verifying this change

  • mvn compile succeeds
  • mvn test -pl tieredstore passes (112 tests, 0 failures)

🤖 Generated with Claude Code

…executors

- Reduce core pool from max(16, processors*4) to max(4, processors)
- Set max pool to max(16, processors*2) instead of equal to core
- Allows idle thread recycling (keepAliveTime=1min was already set)
- Extract processors variable to avoid repeated calls

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.98%. Comparing base (a6fb9e2) to head (8e007c2).
⚠️ Report is 10 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10472      +/-   ##
=============================================
- Coverage      48.03%   47.98%   -0.06%     
+ Complexity     13286    13283       -3     
=============================================
  Files           1376     1377       +1     
  Lines         100558   100633      +75     
  Branches       12985    12995      +10     
=============================================
- Hits           48305    48284      -21     
- Misses         46333    46406      +73     
- Partials        5920     5943      +23     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oss-sentinel-ai oss-sentinel-ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review: Approved ✅

PR: #10472 — Optimize thread pool sizes
Type: Performance (1 file, +8/-7)

Assessment

Reduces core pool from max(16, processors*4) to max(4, processors), sets max pool to max(16, processors*2). Eliminates excessive idle threads.

Verdict

✅ Reasonable thread pool tuning. Part of #10462.


🤖 Automated review by oss-sentinel-ai

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.

3 participants