Skip to content

Add opt-in primary Bridge pile preference - #942

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

vgvoleg wants to merge 6 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 86.59794% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.88%. Comparing base (e231157) to head (97bdda5).

Files with missing lines Patch % Lines
ydb/pool.py 80.00% 6 Missing and 5 partials ⚠️
ydb/aio/pool.py 90.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #942      +/-   ##
==========================================
+ Coverage   82.70%   82.88%   +0.18%     
==========================================
  Files          99       99              
  Lines       12960    13027      +67     
  Branches     1266     1286      +20     
==========================================
+ Hits        10718    10797      +79     
+ Misses       1789     1781       -8     
+ Partials      453      449       -4     
Flag Coverage Δ
integration 80.55% <86.59%> (+0.16%) ⬆️
unit 49.13% <9.27%> (-0.21%) ⬇️

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/driver.py 73.52% <100.00%> (+2.10%) ⬆️
ydb/resolver.py 85.00% <100.00%> (+3.11%) ⬆️
ydb/aio/pool.py 78.04% <90.47%> (+2.83%) ⬆️
ydb/pool.py 86.08% <80.00%> (+2.20%) ⬆️

... and 2 files 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