Skip to content

Add opt-in primary Bridge pile preference - #942

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

vgvoleg wants to merge 9 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

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.03%. Comparing base (a1e8d26) to head (97f709c).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #942      +/-   ##
==========================================
+ Coverage   82.73%   83.03%   +0.30%     
==========================================
  Files          99       99              
  Lines       12965    13038      +73     
  Branches     1266     1288      +22     
==========================================
+ Hits        10726    10826     +100     
+ Misses       1788     1770      -18     
+ Partials      451      442       -9     
Flag Coverage Δ
integration 80.71% <100.00%> (+0.28%) ⬆️
unit 49.13% <10.16%> (-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/aio/pool.py 79.83% <100.00%> (+4.62%) ⬆️
ydb/aio/resolver.py 82.85% <100.00%> (+0.50%) ⬆️
ydb/driver.py 72.05% <100.00%> (+0.63%) ⬆️
ydb/pool.py 89.88% <100.00%> (+6.00%) ⬆️
ydb/resolver.py 86.61% <100.00%> (+4.72%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vgvoleg vgvoleg added the SLO label Nov 19, 2026
@github-actions github-actions Bot removed the SLO label Nov 19, 2026
@github-actions

Copy link
Copy Markdown

🌋 SLO Test Results

🟢 5 workload(s) tested — All thresholds passed

Commit: 69d4979 · View run

Workload Thresholds Duration Report
sync-topic 🟢 OK 10m 7s 📄 Report
async-query 🟢 OK 10m 3s 📄 Report
sync-table 🟢 OK 10m 3s 📄 Report
async-topic 🟢 OK 10m 3s 📄 Report
sync-query 🟢 OK 10m 10s 📄 Report

Generated by ydb-slo-action

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