Skip to content

Migrate data-processing clusters to us-central1 #1092

@stephen-soltesz

Description

@stephen-soltesz

The data-processing cluster in mlab-sandbox & mlab-staging is in us-east, while the archive-measurement-lab bucket is in us-central1. These clusters should be redeployed to us-central, and their output buckets recreated in us-central. Since we want the GKE cluster to be managed by Terraform, we will recreate the production cluster as well.

  • create new data-processing cluster in us-central1 for sandbox & staging
  • create new etl-$PROJECT replacement bucket in us-central
  • create new etl-$PROJECT-us-central1 buckets & update etl & gardener configuration to use them

Production deployment

  • Tag terraform-support repo to create data-pipeline cluster in production
  • Import service account into TF by hand.
    terraform import module.data-pipeline.google_service_account.stats_pipeline  \
        projects/mlab-oti/serviceAccounts/stats-pipeline@mlab-oti.iam.gserviceaccount.com
    
  • Add role binding to new GKE cluster:
    kubectl create clusterrolebinding additional-cluster-admins  --clusterrole=cluster-admin  \
        --user=<id>@cloudbuild.gserviceaccount.com
    
  • Update CB substitutions for the six data pipeline service repos.
  • Tag all six data pipeline service repos to deploy to data-pipeline cluster
  • Create DNS record for prometheus-data-pipeline.mlab-oti.measurementlab.net using Cluster LB address

Clean up tasks after deployments:

  • Remove services from sandbox & staging data-processing cluster
  • Remove services from production data-processing cluster
  • Remove prometheus-data-processing.$PROJECT.* DNS records
  • Remove old data sources from prometheus-support & Grafana
  • Remove etl-$PROJECT intermediate buckets
  • Remove data-processing clusters

Consider

  • recreating etl-$PROJECT bucket in us-central & update etl parser to use the short name again
  • recreating the archive-$PROJECT buckets to be single-region (not multi-region) in us-central

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions