Skip to content

load balance individual hosts when clusters are to big to distribute - #14000

Open
DaanHoogland wants to merge 1 commit into
mainfrom
ghi9640-agent-lb-partial-cluster
Open

DaanHoogland wants to merge 1 commit into
mainfrom
ghi9640-agent-lb-partial-cluster

Conversation

@DaanHoogland

@DaanHoogland DaanHoogland commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR...

Fixes: #9640

Note 1: this is usefull for smaller installations and/or installations that have a small number of clusters in comparison to the number of hosts.
Note 2: this does not affect or enable realtime rebalancing of direct agents, only attached agents are impacted.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov

codecov Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.78%. Comparing base (f3cb957) to head (6869aff).

Files with missing lines Patch % Lines
.../agentlb/ClusterBasedAgentLoadBalancerPlanner.java 80.95% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main   #14000   +/-   ##
=========================================
  Coverage     20.78%   20.78%           
- Complexity    21928    21934    +6     
=========================================
  Files          6496     6496           
  Lines        591657   591664    +7     
  Branches      72592    72592           
=========================================
+ Hits         122956   122977   +21     
+ Misses       455356   455343   -13     
+ Partials      13345    13344    -1     
Flag Coverage Δ
uitests 3.88% <ø> (ø)
unittests 22.09% <80.95%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland
DaanHoogland force-pushed the ghi9640-agent-lb-partial-cluster branch from b11258f to 6869aff Compare November 9, 2026 14:47
Copilot AI balanced review requested due to automatic review settings November 9, 2026 14:47

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

🔴 Test Coverage Grade: D — Marginal

Metric Value
Line coverage 25.89%
Branch coverage 20.23%

Grade Scale

Grade Line Coverage Meaning
🟢 A ≥ 80% Excellent - this code sleeps well at night 😴
🟡 B 60-79% Good - almost there, don't stop now 😉
🟠 C 40-59% Acceptable - your code is wearing a seatbelt, but no airbags 😬
🔴 D 20-39% Marginal - boldly shipping where no test has gone before 🖖
⛔ F < 20% Failing - tests? what tests? 🔥

Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

agent attache rebalancing doesn't work in MSses

3 participants