Migrating to CloudNexus Infrastructure
A comprehensive, step-by-step guide to transitioning your applications, databases, and workloads to CloudNexus with minimal downtime.
Overview
Migrating to CloudNexus allows you to leverage our global CDN, auto-scaling Kubernetes clusters, managed databases, and enterprise-grade security. This guide covers a standard migration path for typical web applications and microservices.
We recommend a blue-green deployment approach. Maintain your existing environment until CloudNexus is fully validated.
Prerequisites
Before beginning, ensure you have the following ready:
- Active CloudNexus account with verified billing
- CloudNexus CLI installed (
cnx --version) - Valid API key with
adminordeployerscope - Root/SSH access to current infrastructure
- Database dump or replication credentials
- DNS management access for your domain
cnx config set region us-east-1
Step 1: Environment Setup
Initialize your project structure and configure environment variables. CloudNexus uses a declarative cnx.yaml manifest for reproducible deployments.
cp .env.example .env
# Populate .env with your database credentials and API secrets
Never commit .env or raw credentials to version control. Use cnx secrets import to inject them securely into the platform.
Step 2: Data & State Migration
Database Transfer
For PostgreSQL/MySQL, we recommend logical replication or snapshot import depending on dataset size.
cnx db create --engine postgresql-15 --tier standard-2 --name prod-db
# Import from remote host (zero-downtime replication)
cnx db import --from postgres://old-host:5432/app --to prod-db --replicate
Object Storage Sync
Sync S3/MinIO buckets using our optimized transfer tool. It handles multipart uploads and bandwidth throttling automatically.
Step 3: Compute & Services
Deploy your application containers. CloudNexus handles container registry, build pipelines, and service mesh configuration automatically.
# Output: Deploying to cnx-prod-app... [â] Health checks passed
Verify the service endpoint:
HTTP/2 200
x-cnx-region: us-east-1
x-response-time: 14ms
Step 4: DNS Cutover
Once validation is complete, update your DNS records to point to CloudNexus Anycast IPs. We recommend lowering TTL 24 hours before cutover.
- Update your provider's
AorCNAMErecords to*.cnx.app - Verify SSL/TLS provisioning (auto-issued via Let's Encrypt integration)
- Monitor propagation using
digor DNS checker tools
Cloudflare/CloudNexus edge nodes will automatically cache static assets and optimize TCP handshakes for global users.
Validation & Monitoring
Post-migration, run our automated health suite and enable observability dashboards.
[â] DNS Resolution
[â] SSL Certificate
[â] Route Handlers
[â] DB Connectivity
Migration score: 100/100
Access real-time metrics at https://dashboard.cnx.app/metrics. Set up alerting for CPU > 80% or error rate > 1%.
Troubleshooting
Connection refused on port 5432: Ensure security groups allow inbound traffic from CloudNexus IP ranges.SSL handshake failed: Certificate provisioning takes ~60s. Retry or check domain validation records.
- Rollback: Run
cnx deploy rollback --version previousto instantly revert traffic. - Logs: Stream live logs with
cnx logs tail --follow --service prod-app - Support: Contact support@cloudnexus.dev or join our Discord community for migration assistance.