Bring MySQL back from a cloud service to your own data center for a plant estate
Moving MySQL from a cloud database service to your own data center is a replication cutover: a new primary on your hardware follows the cloud primary over binary logs, and the application stops writing only for the final minutes. On Amazon RDS for MySQL the replica source needs binary log retention set on purpose, with mysql.rds_set_configuration, because the default is not long enough for a multi-day catch-up. The money side is simple to read: AWS's own RDS for MySQL example prices a dedicated log volume at $428 a month on one node and $856 with a Multi-AZ standby (AWS, checked 23 Nov 2026), so a standby doubles the storage line. A manufacturer with MES, historian and quality systems on the plant network usually has a second reason: the database should sit within a few milliseconds of the line, and inside the plant's own change calendar. OSStend designs the target, runs the replication and owns the cutover, then runs MySQL 24/7 in your data center as a co-managed service.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓MySQL
- ✓Cloud to data center
- ✓Manufacturing
- Source
- RDS for MySQL 8.4, Multi-AZ
- Target
- MySQL 8.4 on your hosts, source and replica
- Method
- Binlog replication with GTIDs, then cutover
- Write pause
- Minutes, set in the rehearsal
- Runs where
- Your data center, co-managed
Typical situation
Trigger. Plant systems on site need the database within a few milliseconds, and the cloud bill for a Multi-AZ primary keeps growing with storage.
Versions. RDS for MySQL 8.4 LTS as the source; MySQL 8.4 LTS on the target so the replication stream stays on one major line.
- Change windows follow the plant calendar
- Hardware is bought and racked by your team
- Writes can stop for minutes, not hours
A typical situation, not a named customer.
To move MySQL from RDS back to your data center, set binary log retention on the source, build the target from a snapshot, replicate with GTIDs until lag is zero, rehearse the cutover, then switch writes. OSStend designs the hardware layout, owns the cutover and runs the cluster 24/7 with the 24/7 response commitment for co-managed sites.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
OSStend engineers design, move and run the cluster; you keep the application, the data and the decisions about it. The split below is what is set in the design you sign off, and it is written into the contract.
| Area | OSStend | You |
|---|---|---|
| Target design | Writes the node layout, storage, replication model and backup plan for your hosts | Buys and racks the hardware, supplies network and power |
| Source preparation | Lists the binlog, parameter and user settings the RDS side needs | Approves changes on the production instance |
| Replication | Builds the target, runs the stream and watches lag until cutover | Keeps the application running on the source |
| Cutover | Owns the runbook, the freeze and the switch | Stops writers, repoints connection strings and signs off |
| Backups and restores | Schedules, tests and restores | Holds the retention policy and the storage |
| Patching and upgrades | Plans minor and major upgrades on your calendar | Approves windows |
| Incident response | Named engineers on call 24/7 | Supplies hands for hardware faults on your floor |
Where it can run
This use case runs in your data center, on hardware you own, with OSStend operating MySQL on it. MySQL's server is available under the GPL, so running it for your own use on your own hosts needs no hosting agreement.
| Option | When it fits | Licence and source |
|---|---|---|
| Our cloud | Not this use case. It fits when the reason to leave is the service, not the location | MySQL Community server is GPLv2 (MySQL, 23 Nov 2026); OSStend's cloud is available for it |
| Your cloud account | Fits when you want out of the managed service but not out of the cloud | Same licence; the cluster runs in your account and VPC |
| Your data center | Plant-floor latency, a fixed capital budget or an existing virtualisation estate | Same licence; OSStend operates it as your contractor under the 24/7 response commitment |
Licence placement comes from the OSStend licensing review, 19 Nov 2026. This table is not legal advice.
How the move works
The method is binary log replication with both sides live. The time ranges below are typical for a database of a few terabytes and are fixed in your design.
Review and design, 1 to 2 weeks
An engineer reads schema size, write rate and the application's tolerance for a write pause, then writes the node layout and the replication model.
Prepare the source, 1 to 3 days
Set binary log retention long enough for the catch-up with mysql.rds_set_configuration, check GTID mode, and create the replication user.
Build and seed the target, 3 to 10 days
Provision hosts, restore a snapshot or logical dump, and attach the target to the source by GTID auto-position.
Replicate and verify, 1 to 3 weeks
Run until lag stays near zero, compare row counts and checksums on the tables that matter, and run read traffic against the target.
Rehearse and cut over, 1 to 2 days
Rehearse on a copy, then stop writers, wait for zero lag, promote the target and repoint the application. Keep the source live and read-only as the way back.
Cost basis
The cloud side is billed by instance hours, provisioned storage and a standby that doubles the storage line. In a data center the same load is a hardware and power cost, plus OSStend's fee, which is quoted per design.
| Line | Cloud service today | Data center |
|---|---|---|
| Dedicated log volume, io1, one node | $428 a month (AWS example, US East) | Disks you own |
| Same volume with a Multi-AZ standby | $856 a month (AWS example) | A second host and its disks |
| Snapshot export, per GB of snapshot | $0.013 (AWS pricing page) | Not billed |
| Engineer time and 24/7 cover | Your team | OSStend, quoted per design |
Source: RDS for MySQL pricing, US East (N. Virginia), checked 23 Nov 2026. Instance-hour and gp3 rates sit behind collapsed sections on that page and were not read, so no instance total is shown. Compare your own bill with the RDS pricing explained guide.
OSStend's own price is quoted per design after a 45-minute workload review. It depends on the node design, the service level tier and where the cluster runs; see pricing.
What we watch on call
After cutover, the failure patterns that matter on a plant-side MySQL are the ones that stop writes or hide data loss. Each has a signal we alert on.
- Replica lag.
- Seconds_Behind_Source and the GTID gap on every replica; alert before lag exceeds the failover tolerance.
- Disk fill from binary logs.
- Binlog expiry is set to match the backup interval, and free space on the log volume is watched.
- Long transactions.
- A batch job holding an open transaction blocks purge and stalls replication; we alert on transaction age.
- Backup that cannot restore.
- A restore is run on a schedule onto a scratch host and checked against row counts.
- Clock and network drift between sites.
- NTP offset and packet loss on the link between plant and replica site.
- Failed hardware.
- SMART and RAID alerts raise a ticket with your floor team inside the response commitment.
When OSStend is not the right fit
The move fits when location, latency or fixed cost is the reason to leave. It does not when the cloud service is working and the only goal is a smaller bill.
Contact us if
- ✓Plant, lab or branch systems need the database on site.
- ✓You own hosts and want one team to run MySQL on them.
- ✓You can accept a write pause of minutes at cutover.
Not a fit if
- ✕You have no data center capacity and no plan to buy any.
- ✕The workload is a small database that a standard plan holds.
- ✕The application cannot tolerate any write pause.
Questions buyers ask
Short answers to the questions that come up most on this kind of move. Each can be checked against the sources linked above.
Can we keep writing during the move?
Yes, until the final switch. The source keeps taking writes while the target follows, and only the last minutes need a pause.
Why not just use mysqldump?
A dump is a point in time. For a database that keeps changing it needs a replication stream on top, which is what the plan uses.
Does the data center stay under our control?
Yes. OSStend engineers operate MySQL on your hosts, and access, keys and the audit trail stay yours. See deployment and security.
What if the target fails the rehearsal?
The source never stopped being the primary, so the plan is to fix the target and rehearse again. Read the MySQL hosting page for the engine design.
Related pages
- ComparisonAWS RDS pricing explained (2026)AWS RDS and Aurora pricing from AWS list prices: instances, storage, I/O, backups and Multi-AZ, with a cost calculator and when RDS is the cheaper choice.
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
- DeploymentManaged databases: our cloud, yours or on-premManaged databases in OSStend's cloud, your AWS, Azure or Google Cloud account, or your data center. PostgreSQL, Kafka and RabbitMQ, run 24/7 by engineers.
- SecuritySecurity and compliance at OSStendOSStend security: private networking, your identity provider, your key management and audit trail, plus air-gapped delivery and FIPS hosts you control.
- MySQL and MariaDBMySQL hosting: managed MySQL and MariaDB, 24/7MySQL hosting for enterprise workloads: managed MySQL and MariaDB with replicas, point-in-time recovery and failover, run 24/7 in your cloud or data center.
Plan the move back to your data center
Bring the source version, size and plant calendar. An engineer will sketch the design in 45 minutes.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





