Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Load and soak testing

Source docs/ops/load-testing.md

On this page
  1. Scenarios
  2. Results
  3. What a run here showed

A scenario suite that measures the reference gateway and stack under load, archives every result as JSON and judges it against thresholds derived from the objectives. The numbers describe the machine, the build and the load of the run that produced them; they are not a capacity statement for any deployment, and passing them is not a conformance claim.

make load-smoke                                    # smoke scale (seconds) against a gateway built and started locally
OBSP_LOAD_TARGET=http://127.0.0.1:8080 make load-smoke   # against a gateway you run
make load-soak                                     # the one-hour soak
python3 infra/load/obsp_load.py run --scale nightly --target http://<gateway>:8080 [--stack]
make load-compare RESULTS=dist/load/<run> BASELINE=dist/load/<earlier run>
python3 infra/load/obsp_load.py list
File Role
infra/load/scenarios.yaml scenarios, parameters per scale, thresholds, the regression rule
infra/load/obsp_load.py the driver: keep-alive HTTP/1.1 clients in threads, standard library plus PyYAML and the Python SDK
infra/load/smoke.sh make load-smoke and make load-soak: builds the gateway (metrics, obsp-0.2) and runs the driver against it
ci/jobs/load-nightly.sh the nightly CI job: the stack with the observability profile, the nightly scale, the comparison with the previous run

Scenarios

Scenario What it does Thresholds (nightly)
ingest-burst 16 clients post 64-event replay batches as fast as they are answered for 2 minutes, with stored records read back batch p99 at most 0.5 s (SLO-INGEST), server errors at most 0.1% (SLO-VERIFY), record read p99 at most 0.25 s
soak a fixed rate of batches for 10 minutes (nightly) or one hour (soak scale) as above, and the p99 of the last tenth of the run at most 2x (1.5x for the soak) that of the first tenth: a leak or a growing store shows up as drift
fanout 64 subscribers poll one stream’s records while a writer appends; for each write, the time until every subscriber has seen it fan-out to all within 60 s (SLO-CORRECTION’s bound), poll errors at most 0.1%
large-eo batches close to the 1 MiB body limit (large Earth-observation products), read back; then a 4 MB body large batch p99 at most 2 s; the oversize body refused with 413 within 2 s, not read in full
federation-partition cuts one federation peer off its network for 30 s, then rejoins it partition detected; no peer records a partition 60 s after rejoining

Each scenario has a smoke scale with looser latency limits, so that it runs on a laptop or a shared executor and proves that the gateway stays correct (no server error, every event accepted) under concurrency.

The corpus. Intake events are unsigned observation records built from the positive fixture, each with its own event id and RFC 8785 payload digest, the node of the batch as the record’s system, and the request context of the fixtures. The gateway accepts them because a signature is checked only when one is present. Signed batches exercise the signature path too (more work per event); replay them with --corpus. Every result names its corpus.

Fan-out today and with the data plane. The fan-out scenario polls the read endpoint because the reference gateway has no subscription interface yet. When the data plane adds push subscriptions, the scenario subscribes there; the measurement (time until every subscriber has the write) and the threshold stay the same.

Results

dist/load/<run id>/<scenario>.json (schema obsp-load-result/1): scenario, scale, target, commit, corpus, start time, duration, parameters, host (Python version, machine, CPU count), per operation the count, rate, p50, p95, p99, maximum, error ratio and status classes, scenario extras (dispositions, drift, bytes sent, fan-out coverage), every threshold with its value and verdict, and the status PASS, FAIL or SKIPPED (with its reason). summary.json lists the statuses. The nightly job stores the folder as a CI artifact; keep the previous night’s as dist/load-baseline and the job also fails on a regression: a p95 or p99 more than 1.25 times the baseline’s (and above 50 ms), or a rate below the baseline’s divided by 1.25.

What a run here showed

A smoke run on the development container against a debug build of the gateway (4 clients, 64-event batches, 5 seconds): about 190 batches (12 000 events) per second with every event accepted, batch p99 about 30 ms. The first fan-out attempt polled a stream that already held 60 000 events from the earlier scenarios and needed 5.2 s for every subscriber to see a write: listing records with an offset is linear in the stream’s length in the reference store. Each scenario now writes its own node’s stream, and the finding stands for the data plane: a read model with an index by stream and position is needed before fan-out to many subscribers can hold 60 s at scale.