Multi region replication - #101
Merged
JamesEjembi merged 2 commits intoJul 28, 2026
Merged
Conversation
…n-testing Add multi-region replication and disaster recovery primitives
Contributor
|
Merged directly into main with conflict resolution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
replicationmodule (src/replication/mod.rs) implementingRegionStatus,ReplicationTopology, deterministic failover selection (failover_plan()),CanaryAnalysisrelease gates,DisasterRecoveryTestReport, andReplicationMetricswith SLO constants.pub mod replication;tosrc/lib.rsso consumers and tests can use it.tests/replication_dr_test.rs) covering failover selection, stale/slow-region DR blocking, canary gates (security, success rate, latency), and combined RTO/RPO pass criteria.docs/runbooks/multi-region-dr.md) describing architecture, SLOs, blue-green/canary promotion flow, DR exercise steps, and monitoring/alert guidance.Testing
cargo test --test replication_dr_testand the new replication tests passed (4 passed; 0 failed).cargo test; the replication tests passed, but the overall run produced unrelated failures in existingpool_managerunit tests (17 failures) due to Soroban storage access from tests that requireenv.as_contract(); those failures are pre-existing and not caused by the replication module.Closes #91