StackX Replication / Disaster Recovery The StackX Replication / Disaster Recovery scope is intended for production systems that require an operational standby server or infrastructure, managed replication, and a genuinely prepared failover procedure.
 
The model is based on a PRD / DRS architecture operated through StackX: a production server, a recovery server, consistent SQL and file flows, and dedicated operations tooling.
 
Depending on the selected scope, StackX can also manage a service VIP (standard on ScalarCloud), propagation of replicated environments, and controlled failback.
 
The result: a disaster recovery plan that is easier to execute, better documented, and easier to verify than a simple collection of one-off scripts or YAML files.
 
For requirements focused exclusively on backup and restore, see Backup.

StackX Replication / Disaster Recovery Baseline

StackX Replication / Disaster Recovery Baseline
ComponentRole
PRD / DRS ArchitectureA production server and a recovery server operated together
SQL ReplicationBidirectional MariaDB/MySQL replication, according to the selected topology
File Synchronizationprdsync / drssync to keep docroots, configurations, and content consistent
Operations BastionOrchestration of critical operations, checks, and remediation across nodes
Service VIPControlled reassignment based on the architecture when a virtual IP is included in the scope

SQL Engine OverviewMariaDB, MySQL, and PostgreSQL

SQL Engine Overview
EngineRecovery Mode
MariaDB / MySQLNative database replication based on the selected topology, tool-assisted repair, and resynchronization with an explicit source of truth
PostgreSQLStreaming replication primary / standby, DRS promotion, and target-node rebuild during failback
Application Filesprdsync / drssync synchronization according to the selected operational direction
VIP / Service IPControlled reassignment based on the architecture when it is included

What StackX AutomatesChecks, synchronization, and bastion operations

What StackX Automates
OperationStackX
InitializationReplication bootstrap and inter-node access checks
Environment CreationPropagation of replicated environments from PRD -> DRS
ChecksVerification of services, replication, backups, and monitoring through sxpostcheck
PrechecksValidation of roles, access, SQL status, synchronization, and prerequisites before any mutation
LockingA single mutating operation per PRD / DRS pair to prevent concurrent execution
RepairManaged resynchronization with an explicit source of truth
FailoverActivation of disaster recovery / DRS, suspension of synchronization flows, and service failover according to the architecture
FailbackReseeding PRD from DRS, final SQL catch-up, file resynchronization, and return to normal operations
Enabling SynchronizationStart only after complete validation of replication and the inter-node path

When to Choose Replication / Disaster Recovery

When to Choose Replication / Disaster Recovery
ContextBenefit
Critical ProductionReduce recovery time and avoid improvisation during a major incident
Strong SQL DependenciesMaintain database / file consistency on a second node
RPO / RTO ConstraintsPrepare the recovery level before an incident
Multi-zone / multi-DCIsolate recovery infrastructure at another site or in another zone

Scoping PointsRPO, RTO, failover, and validation

Scoping Points
PointNote
StackX ScopeSome functions depend on the scope actually deployed
VIPA VIP is not present in every architecture
FailbackReturning to normal operations may require a controlled reseeding of PRD
Destructive OperationThe target node and source of truth must be selected explicitly before any reseeding
Disaster RecoveryThe appropriate level depends on the RPO, RTO, application flows, and accepted budget

Infrastructure

ScalarX designs and operates redundant, maintainable, and scalable architectures tailored to production constraints, the selected provider, and the expected level of independence.

Monitoring

ScalarX combines local monitoring, external HTTPS checks, and an independent trusted third party to assess incidents more accurately, even across architectures distributed among multiple countries, providers, or data centers.

Managed Operations

ScalarX combines human expertise, conditional algorithms, and agentic AI systems to improve operational reliability, detect weak signals, accelerate response, and improve the quality of operations.