Repository navigation
feat(zero): allow --rebalance_interval=0 to disable automatic tablet … - #9848
Conversation
…rebalancing A zero interval now disables the rebalancer entirely instead of failing startup; negative values remain a startup error. The loop returns before creating the ticker (time.Tick panics on non-positive durations) and logs that rebalancing is disabled. Manual /moveTablet is unaffected.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe rebalance interval can now be zero to disable automatic tablet rebalancing. The server passes the configured interval to the rebalancing routine, which returns without starting a ticker for non-positive intervals. ChangesTablet rebalancing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to Setting the interval to zero disables automatic tablet rebalancing without blocking initial assignment or separate manual moves. No material merge-blocking risk is established; the change is ready for normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…rebalancing
Zero's automatic rebalancer could not be turned off: --rebalance_interval required a positive value, so operators who need a stable tablet layout (e.g. one chosen with the bulk loader's --tablet_placement, #9842) had to resort to absurdly large intervals like 99999h. This makes the intent expressible directly:
dgraph zero --rebalance_interval=0
What this does
What still works with rebalancing disabled
What this does NOT do
Testing
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit