The user wants a comprehensive "Self-Service Chaos Experimentation Portal."
The key requirements are:
- Scenario Templates: Pre-defined chaos experiments.
- Blast-Radius Gating: Mechanisms to limit the impact of experiments (prevent total outages).
- Automated Validation: Checks (canaries, SLOs) to determine if the experiment passed or failed.
- Adoption Metrics: Tracking usage, success rates, and maturity of teams.
Target Audience: Engineering teams (SREs, Developers) looking to implement Chaos Engineering safely at scale.
Tone: Professional, technical, yet accessible (since it's a "self-service" tool). It needs to sound like a product pitch or a system design document for an internal platform.
Structure of the Response:
I will structure this as a comprehensive "Design & Feature Specification" for a fictional internal tool (let's call it "ChaosOps Center"). This allows me to cover all requirements in depth.
- Introduction: What is the portal? What is the philosophy?
- Core Components (The "How"):
- Scenario Templates: Categorization (Pod kills, CPU hogging, network latency). Use a library approach.
- Blast-Radius Gating: The safety features. Namespace restrictions, percentage limits, manual approvals, "Game Days."
- Automated Validation: The "Verifier." Integration with metrics (Datadog/Prometheus) and SLOs.
- The Workflow (The User Journey): Step-by-step guide on how an engineer uses it.
- Adoption Metrics (The "Why"): Dashboards for leadership and platform teams.
- Technical Stack (Optional but helpful): What tools would build this? (Gremlin, Chaos Mesh, Litmus, custom controllers).
Drafting Content - Section by Section:
-
Title: ChaosOps Center: Self-Service Chaos Portal.
-
1. Scenario Templates (The Menu):
- Need levels. "Beginner" (stateless), "Intermediate" (stateful), "Advanced" (blast radius).
- Categories: Resource, Network, State.
- Example: "Payment API Latency Spike."
-
2. Blast-Radius Gating (The Guardrails):
- This is crucial. We don't want a junior dev taking down prod.
- Hard limits: No
all instances.
- Context-aware: Only non-critical namespaces for new teams.
- Manual Gates: "Two-person rule" for production experiments.
- Dependency check: Ensure you aren't hitting a downstream dependency that is already under stress.
-
3. Automated Validation (The Judge):
- How do we know it worked?
- Pre-flight checks (Is the system healthy now?).
- During-experiment monitoring (SLO/SLI tracking). If Error Rate > 0.5%, ABORT.
- Post-experiment rollback.
-
4. Adoption Metrics (The Scoreboard):
- Gamification?
- Metrics: Experiments run, unique teams, MTTD (Mean Time To Discovery of weaknesses).
- Maturity Score: Level 1 (Dev) -> Level 4 (Game Days in Prod).
Refining the Tone:
Make it actionable. Use headers and bullet points. "Guardrails" is the keyword here—emphasize safety.
Self-Correction/Improvement during drafting:
- Initial thought: Just list features.
- Correction: A portal implies a UI/UX. I should describe the user flow or the dashboard layout.
- Focus on "Self-Service": It needs to be easy. "Click to destroy" (safely).
- Integration: Mention that this sits on top of chaos tools like Chaos Mesh or LitmusChaos, as writing a chaos injector from scratch is usually not what people want; they want the management layer.
Final Polish:
Check against all user requirements:
- Scenario Templates? Yes.
- Blast-radius gating? Yes.
- Automated validation? Yes.
- Adoption metrics? Yes.
Let's organize the output into:
- Portal Overview
- Core Feature Modules (The 4 requirements)
- The User Workflow
- Technical Architecture
- Governance & Culture
This looks like a solid plan. I will write the response now.
This is a comprehensive design specification for "ChaosOps Center," an internal self-service portal for managing chaos engineering. This design focuses on enabling developers while maintaining strict safety controls for the organization.
1. Portal Philosophy: "Fail Safely, Learn Faster"
The portal acts as an abstraction layer over open-source chaos tools (like Chaos Mesh, LitmusChaos, or Gremlin). It translates complex infrastructure attacks into business-readable scenarios, ensuring that anyone from a junior developer to an SRE can test resilience without needing to be a networking expert.
2. Core Feature Modules
A. Scenario Templates (The "Menu")
Instead of asking users to "inject latency," the portal offers high-level, templated business scenarios.
- Tier 1: Infrastructure (The Basics)
- Pod Death: Randomly delete pods to test auto-scaling and PDBs.
- Resource Starvation: Spike CPU/Memory to test vertical scaling limits and OOMKillers.
- Tier 2: Network (The Complex)
- The "Flaky API": Inject 10% packet loss between the Cart Service and Payment Gateway.
- The "Saturday Night": Simulate high latency (500ms) on database connections.
- Tier 3: State & Cloud (The Advanced)
- The "Blackout": Terminate a specific Availability Zone (or simulate a cloud provider API outage).
- The "Clock Skew": Drift system time on stateful sets to test certificate expiration logic.
B. Blast-Radius Gating (The Guardrails)
The most critical component. The portal prevents a "blast radius" (the scope of impact) from growing too large.
- The "Vegas Rules" Toggle:
- Environments: Experiments can only run in
Dev or Staging by default.
- Prod Unlock: Running in
Prod requires a "Two-Pizza Team" approval (2 senior engineers or 1 SRE) via the UI.
- Static Limiters (Hard Stops):
- Percentage Cap: Users cannot kill more than 20% of replicas via the UI slider.
- Critical Service Protection: The portal syncs with the Service Catalog to create a "Do Not Touch" list (e.g., CoreDNS, Cluster Autoscaler, Payment DB Primary).
- Dependency Aware Gating:
- Before execution, the portal scans the dependency graph. If an experiment targets a service that is currently a dependency of a "Critical Path" service, the portal blocks the run or forces a "Safe Mode" (where monitors are strictly enforced).
C. Automated Validation (The Verifier)
This moves chaos from "breaking things" to "measuring resilience." The portal does not just inject faults; it monitors the reaction.
- Pre-Flight Checks (Application Primitives):
- SLO Check: Is the service currently meeting its SLO? If the error rate is already high, abort the experiment.
- Replica Check: Are there enough healthy replicas to survive the minimum blast radius?
- The "Hypothesis" Framework:
- Users must define a hypothesis before running: "When we kill the cart pod, the user checkout success rate will remain above 99%."
- Real-Time Guardrails (Stop on Red):
- The portal integrates with observability tools (Datadog/Prometheus). If the Error Rate spikes above the defined threshold during the experiment, the portal automatically rolls back (halts the chaos injection) and marks the run as "Failed/Unsafe."
D. Adoption Metrics (The Scoreboard)
To drive cultural change, the portal tracks and gamifies resilience testing.
- Team Maturity Score:
- Level 1: Ran first experiment in Dev.
- Level 2: Achieved "Pass" on Network Latency in Staging.
- Level 3: Successfully completed a "Game Day" in Production with zero user impact.
- MTTD (Mean Time To Discover):
- Tracking how many actual bugs/incidents were found before they caused outages via this portal.
- Dashboard View:
- Total Experiments Run: 1,240
- Success Rate: 88% (12% revealed weaknesses).
- Most Resilient Service: "User-Auth"
- Needs Love: "Legacy-Shipping-Service" (Failed 4/5 tests).
3. User Workflow (The "Happy Path")
Step 1: Select Target
The user logs in and selects a namespace (e.g., team-checkout). The portal visualizes the microservices in that namespace.
Step 2: Choose Template
User selects the "HTTP 500 Storm" template.
Step 3: Configure & Hypothesis
- User config: "Inject 503 errors on 10% of requests to the Shipping Service."
- Hypothesis: "The Checkout Service will retry the request successfully; no orders will be lost."
Step 4: Guardrail Engagement
- The portal detects the target is in
Prod.
- Action: Prompts for SRE approval. (SRE approves via Slack integration).
- Pre-flight: Checks Prometheus. System is healthy. Proceed.
Step 5: Execution & Monitoring
- The experiment starts.
- The portal displays a real-time graph of "Shipping Errors" vs. "Checkout Success."
- Validation: The portal confirms that despite 503s, the Checkout Success rate remained stable (due to retries).
Step 6: Report
- Result: PASS.
- Adoption Metric: The "Checkout Team" earns the "Resilient Networker" badge. The report is saved for compliance auditors.
4. Technical Architecture Summary
- Frontend: React/Vue.js dashboard.
- Backend API: Golang service handling authorization and audit logging.
- Chaos Orchestrator: Uses LitmusChaos or Chaos Mesh Custom Resource Definitions (CRDs) to interact with Kubernetes.
- Observability Integration: Uses OpenMetrics to query Prometheus/Grafana for the validation logic.
5. Implementation Roadmap
- MVP (Month 1-2): Build the wrapper around LitmusChaos. Implement basic Pod Kill templates for Non-Prod environments only.
- Safety Phase (Month 3): Integrate Prometheus "Stop on Red" logic. Blast radius limits hardcoded.
- Prod Launch (Month 6): Release Prod access with manual approval workflows.
- Maturity Phase (Month 9+): Custom scenario builder and full adoption metrics dashboard.