-
Notifications
You must be signed in to change notification settings - Fork 2
[Phase 4] Network latency and chaos simulation #51
Copy link
Copy link
Open
Labels
component:rust-engineRust load test engineRust load test engineeffort:mMedium - 3-5 daysMedium - 3-5 daysphase-4:distributedPhase 4: Distributed Testing (Months 7-8)Phase 4: Distributed Testing (Months 7-8)priority:p2-mediumMedium priorityMedium prioritytype:featureNew feature or functionalityNew feature or functionality
Metadata
Metadata
Assignees
Labels
component:rust-engineRust load test engineRust load test engineeffort:mMedium - 3-5 daysMedium - 3-5 daysphase-4:distributedPhase 4: Distributed Testing (Months 7-8)Phase 4: Distributed Testing (Months 7-8)priority:p2-mediumMedium priorityMedium prioritytype:featureNew feature or functionalityNew feature or functionality
Inject artificial network conditions (latency, packet loss, bandwidth throttling) per node to simulate real-world degradation and test application resilience.
Modes
Artificial request delay
CHAOS_LATENCY_MS=50— adds 50ms before every requestCHAOS_LATENCY_JITTER_MS=20— adds random ±20ms jitter on topRequest drop / simulated packet loss
CHAOS_DROP_RATE=0.05— drop 5% of requests before they leave the clientchaos_dropin the error category metricPer-node chaos (not global)
europe-west1add 200ms latency while others run cleanConfig
Metrics
rust_loadtest_chaos_requests_dropped_total— counter of artificially dropped requestsrust_loadtest_chaos_latency_added_ms— histogram of injected latency valuesregionso you can isolate chaos effects in GrafanaNotes
tc netem/ kernel-level — no root/privileged access needed