Back to docs
Recipe

Recipe: Chaos engineering scenario writer

Generate production-safe chaos experiments from natural language descriptions. Meridian validates blast radius, sets abort thresholds, and schedules the run.

Ingredients

  • Meridian CLI v2.4+ with chaos plugin enabled
  • Target cluster registered in Meridian inventory
  • Observability backend (Prometheus or Datadog) connected
  • Slack or PagerDuty webhook for abort notifications

Quick start

$ meridian chaos write \
  --prompt "kill 30% of payment-service pods \
            for 5 minutes during peak load" \
  --blast-radius namespace:payments \
  --abort-if error-rate > 2% \
  --schedule "tomorrow 14:00 UTC"

Meridian parses the prompt, maps it to a fault injection plan, and gates execution behind the abort conditions you specify.

Safety rails

Blast radius enforcement

Experiments cannot escape the declared namespace or label selector. Meridian denies cross-boundary faults at plan time.

Automatic rollback

If any abort metric breaches its threshold, Meridian halts the experiment and restores the target to its pre-run state within 30 seconds.

Dry-run mode

Append --dry-run to preview the exact API calls Meridian will make without touching your cluster.

Audit log

Every scenario write, approval, and execution is recorded with a cryptographic hash for compliance review.

Next steps