Expand description
Cross-datacenter async replication for distributed vector indexes
This module implements asynchronous replication of vector index updates across multiple datacenters with configurable lag tolerance.
§Design
Each datacenter hosts a DcReplicationNode. One DC is designated the
primary (or leader); others are replicas. Index mutations are buffered
in the primary and asynchronously shipped to replicas.
Key features:
- Configurable lag tolerance (max acceptable replication lag)
- Per-replica lag tracking and alerting
- Automatic catch-up on reconnection
- Conflict resolution strategies for network partitions
- Bandwidth throttling to avoid saturating WAN links
§Consistency Model
Cross-DC replication is eventually consistent with configurable lag bounds. Reads on replicas may return stale data. For strong consistency, use the Raft cluster within a single DC.
Structs§
- Conflict
Record - Record of a detected conflict
- Cross
DcConfig - Configuration for cross-DC replication
- Cross
DcCoordinator - Cross-DC replication coordinator
- Cross
DcStats - Statistics for cross-DC replication
- Primary
DcManager - The primary datacenter replication manager
- Replica
DcManager - Replica datacenter replication receiver
- Replica
Tracker - Per-replica tracking state (maintained by primary)
- Replication
Entry - A single replication entry
- Replication
Health - Overall replication health summary
Enums§
- Conflict
Resolution Strategy - Strategy for resolving write conflicts between DCs
- Replica
Status - Status of a replica DC connection
- Replication
Operation - Types of replication operations
Type Aliases§
- DcId
- Datacenter identifier
- Replication
Seq - Replication sequence number (monotonically increasing per primary)