feat(infra): add chaos engineering and resilience test suite (fixes #413) - #440
Open
beulah7717108-eng wants to merge 1 commit into
Open
Conversation
…etherEdu#413) Implement chaos experiments for key platform dependencies (Redis, MongoDB, Stellar RPC) with automated assertions that verify graceful degradation and recovery. Experiments include: - redis-failure: complete Redis unavailability with circuit breaker verification - redis-latency: 500ms latency injection with response time thresholds - mongo-failure: MongoDB container termination with crash detection - rpc-failure: Stellar RPC endpoint blocking with connectivity checks - pod-termination: backend container SIGKILL with RTO measurement The orchestration script produces structured JSON reports, supports dry-run mode, and is integrated into CI via a weekly scheduled GitHub Actions workflow with workflow_dispatch support for on-demand runs. Documentation includes a comprehensive resilience runbook with interpreting results, common failure causes, and a feedback loop for feeding findings into platform improvements. Closes AetherEdu#413
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the chaos engineering and resilience test suite defined in #413.
What was added
Experiment scripts (
scripts/chaos/experiments/):redis-failure.sh— Simulates complete Redis unavailability, verifies circuit breaker behaviour, asserts graceful degradation, and validates recoveryredis-latency.sh— Injects 500ms of Redis latency, validates response time stays within tolerancemongo-failure.sh— Stops MongoDB, verifies no backend crash, asserts health remains reachablerpc-failure.sh— Blocks outbound Stellar/Soroban RPC traffic, validates non-blockchain endpoints continue functioningpod-termination.sh— Sends SIGKILL to the backend container, measures RTO against a 60s budgetOrchestrator (
scripts/chaos/run-experiments.sh):--experiment redis|mongo|rpc|pod|all)--dry-run) for safe preview--staging) to enable destructive experimentsCI workflow (
.github/workflows/chaos.yml):workflow_dispatchDocumentation (
docs/infrastructure/chaos-engineering.md):Acceptance criteria
Testing
Closes #413