Skip to content
Datamotive
Easy Hybrid DRv2.3.1GARelease notes →

Configure

Protection plans

Group workloads by RPO, retention, and recovery target. Apply plans through the console, CLI, or API.

Product
Easy Hybrid DR
Version
v2.3.1
Release status
GA
Documentation status
Published
Last updated
Updated
Reading time
1 min read

A protection plan declares which workloads to protect, what RPO to maintain, how long to keep recovery points, and the target site to ship recovery points to. Plans are the unit of orchestration: drills, failover, and failback all run against a named plan.

Plan structure

protection-plan.yaml
yaml
apiVersion: dr.datamotive.io/v1
kind: ProtectionPlan
metadata:
  name: prod-tier1
spec:
  rpoSeconds: 300
  retention: 7d
  schedule: continuous
  sources:
    - selector: tier=production
  target:
    site: aws-mumbai
    network: recovery-net
  alerts:
    - channel: pagerduty
      severity: critical

Field reference

ParameterTypeRequiredDescription
metadata.namestringrequiredUnique plan name within the workspace.
spec.rpoSecondsintegerrequiredMaximum acceptable data loss in seconds.
spec.retentiondurationoptionalHow long to keep recovery points after the source disappears.
Default: 7d
spec.scheduleenumoptionalcontinuous, periodic, or cron expression.
Default: continuous
spec.sourcesSelector[]requiredTag-based selectors matching one or more source nodes.
spec.target.sitestringrequiredOnboarded target site id.
spec.target.networkstringrequiredRecovery network mapping name.
spec.alertsAlertChannel[]optionalAlert channels and severity thresholds.

Create a plan

  1. Author the plan file

    Save the plan as protection-plan.yaml. Validate it locally:

    bash
    dm plan lint -f protection-plan.yaml
  2. Apply the plan

    Apply creates the plan if it does not exist, otherwise updates the existing plan in place.

    bash
    dm plan apply -f protection-plan.yaml
  3. Verify selector matches

    Confirm the selector matches the expected sources.

    bash
    dm plan describe prod-tier1

RPO and retention guidance

Workload classSuggested RPOSuggested retention
Tier 1 OLTP database60s30d
Tier 1 stateless web5m14d
Tier 2 batch and analytics15m14d
Tier 3 dev and test60m7d

Common pitfalls

SymptomLikely causeAction
Plan stuck in pendingNo source matches the selectorUpdate the selector, or tag a source node with the missing label.
RPO breach alerts during business hoursLink bandwidth saturatedSchedule large batch sources to a separate plan with a relaxed RPO.
Recovery points expiring too quicklyRetention below the desired windowIncrease `spec.retention`. Note that target storage grows roughly linearly.

Related docs

Was this page helpful?