Cloud migration in Morocco without stopping production
Zero-downtime cloud migration in Morocco relies on a mirror environment, progressive cutover and a ready rollback — not a big-bang switch.
Cloud migration in Morocco without stopping production means mirroring the live stack, switching DNS and services in batches, watching errors, then keeping a rollback ready for 48–72 hours — especially for sales and operations apps.
What is a zero-downtime cloud migration?
It is a progressive cutover: the old environment stays available while the new one takes traffic in stages (read-only, API, sales channels), with monitoring and a reverse plan.
Why leave the single server
- A disk or power failure stops sales and operations.
- No high availability and no tested off-site backup.
- No capacity for peak weekend load.
Method in 4 steps
- Map — apps, dependencies, maintenance windows.
- Mirror — parallel environment (same images, schema, data).
- Switch — DNS, sessions and jobs in batches.
- Observe — logs, alerts, ready rollback.
What each 2SIS app needs from the cloud
| App | Critical pieces |
|---|---|
| SmartGare | API, transactional DB, web/desktop/mobile, thermal printers |
| Bus Tracker | PostgreSQL, MongoDB audit, roadmap sync |
| Mainsuits | API, stock-alert WebSocket, Android app |
| Online ticketing | Public site, CMI, PDF/QR, SmartGare inventory sync |
Typical sequence
- Inventory versions, volumes, night jobs, SMTP / payment / GPS.
- Docker mirror + sales load tests.
- Partial switches: reporting → API → sales channels.
- DNS cutover (low TTL) + 4xx/5xx monitoring.
- Rollback (DB snapshot + previous image) for 48–72 hours.
FAQ
Can you migrate a transport ERP in Morocco without stopping sales?
Yes, with a mirror and batched cutover. The sales channel moves last, after API and data are validated.
Local or international cloud?
Both exist. The choice depends on latency, compliance, cost and support proximity. The architecture (containers, backups, observability) stays the same.
How long does a migration take?
From a few weeks to a few months depending on data volume, integrations (CMI, GPS, SMTP) and the number of agencies.
What happens if cutover fails?
Rollback restores the old DNS and DB snapshot. That is why the mirror and snapshot are non-negotiable before go-live day.
