Quickstart
The lab is two teams’ services, each with its dispatcher, an orchestrator, and an acceptance suite. In ten minutes you will run a load scenario against it and read what the run did: what it declared, who prepared, what was sent, and what was cleaned up.
You need
Section titled “You need”- axx, which runs the suite.
- Go, at the version the repository pins (
mise installgives it to you). - A clone of the repository:
git clone https://github.com/nimbusxr/stormbreaker.
Start the lab
Section titled “Start the lab”From the repository, start the lab on one machine:
examples/lab/scripts/local.shIt builds and starts three things, and leaves them running until you press Ctrl-C:
- the orchestrator, on port 18080;
- the parcels service, on 18081;
- the parcels team’s dispatcher, which registers with the orchestrator and joins the
deliverygroup.
The full lab, on a kind cluster with Kafka, Postgres, Prometheus and a second team, is examples/lab/scripts/up.sh.
Run the suite
Section titled “Run the suite”In another terminal:
cd examples/acceptanceaxx run --tags 'not @lab'The first run takes a little longer: axx builds itself with the suite’s packs, axx’s rest and kafka and stormbreaker’s four. Two scenarios pass:
- A smoke check. It runs in a bubble: no run, nothing to clean up.
- A load run. It registers 250 parcels at 50 a second.
Read the run
Section titled “Read the run”The load scenario’s report has the run’s journal attached. The orchestrator serves it too:
curl -s localhost:18080/runs/<run id>/journaldispatchers on this run parcels local required completed
what happened +0.000s orchestrator the run opens; every instance of every dispatcher in the group is notified +0.004s suite/suite declares 250 identities at parcels:/parcels +0.083s parcels/local declares 250 identities at parcels-mem:local +0.097s parcels/local reports prepared: a prepare round added nothing; settled +5.142s orchestrator the suite says its traffic is done; the window closes +5.142s orchestrator the suite says downstream has settled +5.143s orchestrator cleanup opens; every instance removes what it claimed +5.207s parcels/local reports 250 identities at parcels-mem:local (removed-verified) +5.207s orchestrator the run closes: every instance completed and the footprint stopped growing, with 750 identities answered forBefore a single parcel was registered:
- The suite declared all 250.
- The parcels team’s dispatcher prepared for them and said so.
- Only then did the readiness gate let the traffic through.
After the traffic, the dispatcher deleted every one and checked each was gone. The scenario passed only once that cleanup was verified.
- Your first run: your own service, stream and scenario.
- Why stormbreaker: what a shared environment asks of a load test.