Appearance
CodeCollab on GCP
Status
Completed
Completed
Migration downtime
- Duration target: 3 hours
- Dates: 9-10th October
Migration steps
- Create regional MongoDB clusters in US, EU, SG ✅
- Create dedicated MongoDB cluster in US ✅
- Create Redis instance
- Tag release commit (v0.1.0) on all repositories
- Need to cancel deploy job (important)
- Done
- API Gateway
- cc-api
- cc-compiler-master
- Editor API
- Share @Carl Voller
- Servant @Qin Guan
- HTML Server @Qin Guan
- ❓ Change nameservers to Netlify ❓
- Update Cloudflare DNS records to CNAME
ghs.googlehosted.com.- Everything behind the gateway, I’ll figure it out later
- Global Cloud Run services to be planned and applied on Terraform (resource:
google_cloud_run_service)- API
- Auth
- LTI
- Regional Kubernetes / Cloud Run services to be planned and applied on Terraform (resource:
google_cloud_run_service)- Editor API (GCR)
- Servant Master
- HTML Server
- Share
- API Gateway (GCR)
- Set MongoDB DE, SG to readonly (start of downtime) - 2PM
- Took 20 minutes to dump (including op dbs)
- Display maintenance message
- Update all Cloudflare DNS records to CNAME
ghs.googlehosted.com.(with the period)- Global Routings:
- codecollab.io → cc-frontend-old
- api.cclb.io → cc-api-gateway-prod-us
- Regional Routings:
- us.cclb.io → cc-editor-api-prod-us
- io.us.cclb.io → cc-compiler-master-prod-us
- sh.us.cclb.io → cc-share-prod-us
- us.cclb.me → cc-html-server-prod-us
- Global Routings:
- Terraform apply Regional Cloud Run services domain mapping (resource:
google_cloud_run_domain_mapping) - Upload MongoDB Regional data to regional databases
- Collections:
sg_sharedb-> regional sgsharedbde_sharedb-> regional eusharedb- Delete all
o_de_sharedband all revisions
- Upload MongoDB global data to US database
- Collections
projectsprojectfilesusersfolders
- Collections
- Collections: