Skip to content

Comments

fix: reduce conflicts on load aware node selection#1694

Merged
edgurgel merged 1 commit intomainfrom
fix/region-aware-load-conflicts
Feb 3, 2026
Merged

fix: reduce conflicts on load aware node selection#1694
edgurgel merged 1 commit intomainfrom
fix/region-aware-load-conflicts

Conversation

@edgurgel
Copy link
Member

@edgurgel edgurgel commented Feb 3, 2026

What kind of change does this PR introduce?

The goal here is to reduce syn conflicts.

The algorithm has been changed to use a time-bucketed seeded random node selection. Time-bucketed makes sense here because the load average 5m shouldn't change much in 1 minute (default time bucket).

Also changed to the algorithm to always pick two different nodes.

If both nodes did not return their load number we just fallback to the original algorithm to use phash2 on the tenant id for the selection.

@edgurgel edgurgel force-pushed the fix/region-aware-load-conflicts branch from 76fbc1a to 38fe7c0 Compare February 3, 2026 03:19
The algorithm has been changed to use a time-bucketed seeded
random node selection. Also changed to the algorithm to always pick two
different nodes

If both nodes did not return a load to be used we just fallback to the
original algorithm to use phash2 on the tenant id for the index
@edgurgel edgurgel force-pushed the fix/region-aware-load-conflicts branch from 38fe7c0 to 449827f Compare February 3, 2026 03:20
@edgurgel edgurgel merged commit e4da5f6 into main Feb 3, 2026
7 of 8 checks passed
@edgurgel edgurgel deleted the fix/region-aware-load-conflicts branch February 3, 2026 07:22
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.74.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants