Skip to main content

Example DR Plans

Real-world disaster recovery configurations.

GCP: Database + DNS

name: "gcp-production"

provider:
  type: "gcp"
  project_id: "my-project"

monitors:
  - name: "api-health"
    type: "https"
    endpoint: "https://api.example.com/health"
    interval: "60s"
    failure_threshold: 3

failover:
  strategy: "automatic"

  steps:
    - name: "promote-db"
      type: "database-promote"
      resource: "prod-db-replica"

    - name: "update-dns"
      type: "dns-update"
      zone: "example-com"
      record: "api.example.com."
      target_from_step: "promote-db.newPrimaryEndpoint"