Skip to content

Add scheduled error spikes for demo#150

Merged
kenahrens merged 1 commit into
masterfrom
feat/scheduled-error-spikes
Jun 10, 2026
Merged

Add scheduled error spikes for demo#150
kenahrens merged 1 commit into
masterfrom
feat/scheduled-error-spikes

Conversation

@kenahrens

Copy link
Copy Markdown
Member

Summary

  • At :10 and :40 each hour, error injection probability jumps from 5% to 60% for 2 minutes
  • Guarantees a visible error spike in any 30-minute demo window
  • Configurable via env vars: ERROR_SPIKE_MINUTES, ERROR_SPIKE_PROBABILITY, ERROR_SPIKE_DURATION, ERROR_SPIKE_ENABLED
  • Metrics log includes errorSpikeActive flag

Test plan

  • Deploy and watch Grafana error rate panel across a spike window
  • Verify spike appears at :10, clears by :12
  • Verify baseline error rate returns to ~1-2% outside spike windows

🤖 Generated with Claude Code

Every hour the sim client cranks error injection probability from 5%
to 60% for 2 minutes at :10 and :40. This guarantees a visible error
spike in any 30-minute demo window without manual intervention.
Configurable via ERROR_SPIKE_MINUTES, ERROR_SPIKE_PROBABILITY,
ERROR_SPIKE_DURATION, ERROR_SPIKE_ENABLED env vars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kenahrens kenahrens merged commit 7e76212 into master Jun 10, 2026
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant