Skip to content

Add opt-in primary Bridge pile balancing - #791

Open
vgvoleg wants to merge 1 commit into
masterfrom
prefer-primary-pile
Open

vgvoleg wants to merge 1 commit into
masterfrom
prefer-primary-pile

Conversation

@vgvoleg

@vgvoleg vgvoleg commented Nov 11, 2026

Copy link
Copy Markdown
Member

Add BalancingSettings.preferPrimaryPile() to prefer PRIMARY/PROMOTED endpoints with SYNCHRONIZED fallback. Discovery updates endpoint priorities when roles change, including when node addresses stay the same; ordinary clusters retain normal balancing.

Keep existing node affinity and direct requests, and prevent the ready-channel shortcut from bypassing the preferred pile. Existing policies and endpoint constructors remain compatible.

@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 75.97%. Comparing base (d02db1d) to head (2bf80b3).

Files with missing lines Patch % Lines
...ain/java/tech/ydb/core/impl/pool/EndpointPool.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #791      +/-   ##
============================================
- Coverage     75.98%   75.97%   -0.01%     
- Complexity     3851     3865      +14     
============================================
  Files           396      396              
  Lines         17135    17160      +25     
  Branches       1811     1816       +5     
============================================
+ Hits          13020    13038      +18     
- Misses         3490     3497       +7     
  Partials        625      625              

☔ 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.

@vgvoleg
vgvoleg requested a review from alex268 November 12, 2026 08:03
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.

1 participant