Skip to content

Add opt-in primary Bridge pile preference - #942

Open
vgvoleg wants to merge 8 commits into
mainfrom
prefer-primary-pile
Open

vgvoleg wants to merge 8 commits into
mainfrom
prefer-primary-pile

Conversation

@vgvoleg

@vgvoleg vgvoleg commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Add prefer_primary_pile to synchronous and asynchronous driver configuration. When enabled, PRIMARY/PROMOTED endpoints take priority over SYNCHRONIZED fallback, while clusters without Bridge metadata retain their existing balancing behavior.

Refresh priorities when pile roles change at unchanged endpoint addresses, preserve node-bound session routing, and admit newly preferred endpoints into a full connection cache while retaining a synchronized fallback.

Run the standard 10-minute Query SLO workload with prefer_primary_pile enabled against a two-pile Bridge cluster on GitHub-hosted runners. Use all five upstream Bridge fault scenarios, bounded runner resources and a pinned server image and action revision. Require completed chaos scenarios and continued read/write progress, and retain logs and counters as artifacts.

@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.83333% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.92%. Comparing base (a1e8d26) to head (10fb662).

Files with missing lines Patch % Lines
ydb/pool.py 86.66% 4 Missing and 4 partials ⚠️
ydb/aio/pool.py 88.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #942      +/-   ##
==========================================
+ Coverage   82.73%   82.92%   +0.19%     
==========================================
  Files          99       99              
  Lines       12965    13040      +75     
  Branches     1266     1290      +24     
==========================================
+ Hits        10726    10814      +88     
+ Misses       1788     1778      -10     
+ Partials      451      448       -3     
Flag Coverage Δ
integration 80.60% <90.83%> (+0.18%) ⬆️
unit 49.12% <10.00%> (-0.22%) ⬇️

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

Files with missing lines Coverage Δ
ydb/aio/driver.py 93.54% <100.00%> (+0.44%) ⬆️
ydb/aio/resolver.py 82.85% <100.00%> (+0.50%) ⬆️
ydb/driver.py 72.05% <100.00%> (+0.63%) ⬆️
ydb/resolver.py 86.61% <100.00%> (+4.72%) ⬆️
ydb/aio/pool.py 78.22% <88.00%> (+3.01%) ⬆️
ydb/pool.py 87.35% <86.66%> (+3.47%) ⬆️

... and 1 file with indirect coverage changes

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant