Revision 7681feb32302d7286699da65a2e56ce5d36227e9
Committed on 02/01/2026 2:41 pm by
Zohaib Sibte Hassan <zohaib@sibte.pk> [GitHub Diff]
Feature: Add cluster discovery and transparent failover for replicas
Replicas can now discover cluster nodes and automatically failover
when their current source becomes unavailable.
Changes:
- Add GetClusterNodes RPC for cluster membership discovery
- Replace single master_address with follow_addresses array
- Add --follow-addresses CLI flag for comma-separated seed nodes
- Implement discovery loop polling nodes periodically (max 3 per interval)
- Implement transparent failover with configurable timeout
- Use incarnation-based merge for cluster view consistency
- Add discovery_interval_seconds and failover_timeout_seconds config
- Update examples and documentation
???? Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>