Skip to content

feat: balance shards and leaders per namespace - #1291

Draft
108474839 wants to merge 3 commits into
oxia-db:mainfrom
108474839:codex/namespace-shard-balancing
Draft

108474839 wants to merge 3 commits into
oxia-db:mainfrom
108474839:codex/namespace-shard-balancing

Conversation

@108474839

Copy link
Copy Markdown

Balance shard placement and leader selection per namespace instead of globally, preventing namespace-level imbalance from being hidden by cluster-wide totals.
Includes regression tests for namespace isolation and leader balancing.

Fixes #776

@108474839

Copy link
Copy Markdown
Author

Would it make sense to discuss load-aware balancing (e.g. shard size or traffic) and migration limits in a follow-up issue? This PR keeps the existing count-based policy and applies it per namespace.

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.

feat: load balance shards by namespace

1 participant