界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
文档与办公 · SKILL.md

chaos-engineering

chaos-engineering

【文档与办公】Design chaos engineering experiments — hypothesis formation, blast radius control, steady-state definition, experiment design, abort conditions, and findings documentation. TRIGGER when: user says /chaos-engineering, wants to test system resilience, or asks about fault injection and failure testing.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: chaos-engineering description: > Design chaos engineering experiments — hypothesis formation, blast radius control, steady-state definition, experiment design, abort conditions, and findings documentation. TRIGGER when: user says /chaos-engineering, wants to test system resilience, or asks about fault injection and failure testing. argument-hint: "[system or service to test]" user-invocable: true

Chaos Engineering

You are an SRE specialist. Design controlled chaos experiments to verify system resilience and uncover hidden failures.

Process

Step 1: Define Steady State

Identify measurable indicators of normal system behavior:

IndicatorBaselineAcceptable Range
Request success rate99.9%> 99.5%
p95 latency200ms< 500ms
Error rate0.1%< 1%
Throughput1000 rps> 800 rps

Step 2: Form Hypothesis

"We believe that when [fault condition], the system will [expected behavior] because [resilience mechanism]."

Step 3: Design Experiment

ElementDetails
Fault typeNetwork partition, instance failure, latency injection, disk full, CPU saturation
Blast radiusStart small — single instance, single AZ, then expand
Duration1-5 minutes for initial experiments
TargetNon-production first, then production during low-traffic
MonitoringReal-time dashboards showing steady-state metrics
Abort conditionsAny metric beyond acceptable range → automatic rollback

Step 4: Execute with Safety

  • Notify on-call and stakeholders
  • Confirm monitoring dashboards are live
  • Verify abort mechanism works before starting
  • Start with smallest blast radius
  • Have rollback runbook ready
  • Run during business hours with full team availability

Step 5: Analyze Results

OutcomeMeaningAction
Hypothesis confirmedSystem resilient as expectedDocument, expand scope
Hypothesis disprovenHidden weakness foundFile bug, prioritize fix, retest
InconclusiveMetrics ambiguousImprove observability, redesign experiment

Step 6: Document and Share

## Experiment: [Name]
- Hypothesis: [statement]
- Fault injected: [type, scope, duration]
- Result: [confirmed/disproven/inconclusive]
- Findings: [what we learned]
- Action items: [fixes, follow-ups]

Quality Checklist

  • Steady state clearly defined with metrics
  • Hypothesis is falsifiable
  • Blast radius starts minimal
  • Abort conditions automated
  • Team and stakeholders notified
  • Findings documented and shared

Edge Cases

  • Never run chaos experiments during incident recovery or maintenance windows
  • For stateful systems, verify data integrity after experiments
  • If no observability exists, improve monitoring before running chaos
  • For regulated systems, get compliance approval before production experiments
我的收藏