Expand description
§OxiGDAL High Availability (HA)
High availability, disaster recovery, and automatic failover for OxiGDAL.
§Features
- Active-Active Replication: Bi-directional replication with conflict resolution
- Automatic Failover: Sub-second failover with leader election
- Point-in-Time Recovery: WAL-based recovery with snapshots
- Incremental Backups: Efficient backup strategies
- Disaster Recovery: Cross-region DR with automated runbooks
- Health Monitoring: Comprehensive health checks
§Target Availability
- Uptime: 99.99% (52 minutes downtime/year)
- Failover Time: < 1 second
- RTO: < 5 minutes
- RPO: < 1 minute
§Example
use oxigdal_ha::replication::active_active::ActiveActiveReplication;
use oxigdal_ha::replication::{ReplicationConfig, ReplicationManager};
use uuid::Uuid;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let node_id = Uuid::new_v4();
let config = ReplicationConfig::default();
let replication = ActiveActiveReplication::new(node_id, config);
replication.start().await?;
Ok(())
}Re-exports§
Modules§
- backup
- Backup system with incremental, full, and differential backups.
- conflict
- Conflict resolution for active-active replication.
- dr
- Disaster recovery orchestration.
- error
- Error types for the oxigdal-ha crate.
- failover
- Automatic failover orchestration.
- healthcheck
- Health check system for HA monitoring.
- recovery
- Point-in-time recovery and snapshot management.
- replication
- Replication framework for high availability.
Constants§
- VERSION
- Version information.