Reference
Capacity and resilience baseline
The complete upstream guide to capacity and resilience baseline, synchronized with the product repository.
Product v0.20.0 · Complete source guide
Capacity and resilience baseline
N06 begins with the capacity of one healthy NineDeploy panel. The test starts a fresh panel and two sealed agents on three private Linux Docker daemons. Only the test panel publishes a port, bound to loopback. The daemons, image registry, webhook log sink, and panel data volume belong to the run and are removed after it. The test uses its own panel registration, agent credentials, and private image registry.
Run the baseline
Use a local Linux Docker engine, Docker Desktop in Linux container mode, or a disposable Linux runner. The engine must support Docker-in-Docker. Load the candidate and fixture images before starting.
docker pull docker:28-dind
docker pull registry:2
docker pull nginx:1.27-alpine
docker pull traefik:3
docker pull ghcr.io/ninedeploy/ninedeploy@sha256:113fb9e11ad3f8f94d38020e00e7744ad10c2f57c614afda89f089db2f4e51bf
node scripts/smoke-capacity-baseline.mjs --image=ghcr.io/ninedeploy/ninedeploy@sha256:113fb9e11ad3f8f94d38020e00e7744ad10c2f57c614afda89f089db2f4e51bf --proof=.temp_files/n06-capacityFor a later candidate, pass its local image name or immutable reference. Compare the recorded engine, image digests, and host resources when comparing results. The script saves its profile, limits, and image identities before setup. It writes raw request durations, event-loop samples, deployment records, log queue observations and receiver counts, and a final threshold-by-threshold receipt to a fresh run-* directory. Any failed threshold, setup error, or failed resource cleanup produces a nonzero exit status.
--image is required. --scenario is baseline by default and takes the three faults below, and --proof defaults to .temp_files/n06-capacity. The script refuses a remote Docker endpoint: it needs a Linux engine reached through a local Unix socket or named pipe, because the private daemons run Docker-in-Docker as privileged containers. No workflow runs it, so start it by hand. The run-* directory holds configuration.json (profile, budgets, engine, host resources and image identities), http.json (every scheduled request), event-loop.json, backlog.json (queue samples), delivery.json (receiver counts), deployments.json and result.json (the final receipt with its check list).
The fixture panel runs with one deploy worker (NINEDEPLOY_DEPLOY_CONCURRENCY=1), automatic node sleep off (NINEDEPLOY_NODE_SLEEP_AUTOMATION=off) and the private-address egress check off (NINEDEPLOY_ALLOW_PRIVATE_EGRESS=1), so that it can use the private registry and log sink. The results describe that configuration.
Workload
- The panel registers 12 service definitions. Four services are first deployed and warmed. One is the log source. Three serve as the deployment targets, one on the panel daemon and one on each agent node.
- After a 10-second API warmup at 8 requests per second, the steady window lasts 60 seconds. It schedules 480 authenticated requests at fixed intervals, with 120 each for
GET /v1/services,GET /v1/servers,GET /v1/services/queueandGET /v1/activity?limit=25, taken in turn. The driver records both its launch delay and request time through response-body consumption. - At 5 and 30 seconds, three real deployments enter the public API queue simultaneously. The private registry serves the same cached application image for every deployment. API timestamps give queue wait to one-second resolution. A later deploy can supersede an older one, so the probe requires the successful completion marker in each deployment's log.
- At 10, 25, and 40 seconds, the running log source emits 400 uniquely numbered lines per burst through its Docker stdout. NineDeploy's real shipper delivers to a private webhook sink. The driver polls the queue every two seconds and checks the sink for missing and duplicate lines after the load.
- After delivery and deploys settle, the driver restarts the panel container with its data volume. Recovery ends when the health route and authenticated service, node, and log queue reads succeed with the expected state.
Acceptance thresholds
| Metric | Budget |
|---|---|
| Requests completed per route | 120 |
| p95 response time per route | At most 350 ms |
| Failed HTTP or transport responses | 0 |
| p95 request launch delay | At most 250 ms |
| Panel event-loop coverage | At least 50 one-second windows |
| Worst one-second event-loop p95 | At most 100 ms |
| SQLite busy or locked diagnostics | 0 |
| Panel volume growth | At most 24 MiB |
| Deployments completed | 6 |
| Deployment queue wait p95 | At most 25 s |
| Peak pending log entries sampled | At most 1,200 |
| Final pending, missing or duplicate log entries | 0 each |
| Controlled panel restart to usable API | At most 30 s |
The in-process probe uses Node's event-loop delay histogram at 10 ms resolution. SQLite contention is counted from panel log lines that report busy or locked errors. Storage growth is measured with du -sk /data from just before the steady window through completion of the workload, and the receipt also reports logical SQLite file sizes. The storage budget covers panel state. The log queue peak is a two-second sampled observation.
This baseline establishes the healthy workload and controlled restart budget on the recorded host. The resilience drills reuse it with a slow node, full disk, and unreachable log destination. Host-loss RPO and restore timing are recorded in the disaster recovery drill.
Baseline measurements on November 18, 2026
The candidate was the published NineDeploy v0.19.0 image built from 0a59b5ed4068334b5ee0d1ad36e43959e92525ba. The load driver used Node 26.13.0 on Windows. Docker Desktop's Linux engine was Docker 29.9.3 with four CPUs and 7.76 GiB of memory. The panel used one deploy worker and fresh data for each run. The fixture image digests were recorded before the measurements.
| Fixture | Recorded registry digest |
|---|---|
| Docker-in-Docker | docker@sha256:2a232a42256f70d78e3cc5d2b5d6b3276710a0de0596c145f627ecfae90282ac |
| Private registry | registry@sha256:a3d8aaa63ed8681a604f1dea0aa03f100d5895b6a58ace528858a7b332415373 |
| Application | nginx@sha256:65645c7bb6a0661892a8b03b89d0743208a18dd2f3f17a54ef4b76fb8e2f2a10 |
| Traefik | traefik@sha256:22a759fb803abb5c3a7ba5d5a55a201c5fb0fc8993d5c72c47a89075e64f1953 |
The thresholds were fixed before the first run. Two setup attempts stopped before measurement on the Windows archive copy and a log drain type rejected by the API. A later measurement exposed a fixture assertion that counted previously successful, subsequently superseded deployments as failures. The final fixture streams the preload archive, uses the HTTP log drain, and requires a successful deployment log for both running and superseded rows.
Both fresh runs passed all 21 checks.
| Measurement | Run 1 | Run 2 |
|---|---|---|
| Authenticated requests, errors | 480, 0 | 480, 0 |
| Services API p95 | 19.2 ms | 58.1 ms |
| Nodes API p95 | 9.8 ms | 30.3 ms |
| Deploy queue API p95 | 11.4 ms | 31.8 ms |
| Recent activity API p95 | 28.7 ms | 23.8 ms |
| Request launch delay p95 | 13.9 ms | 13.6 ms |
| Panel event-loop windows | 58 | 59 |
| Worst one-second event-loop p95 | 15.6 ms | 51.7 ms |
| SQLite busy or locked diagnostics | 0 | 0 |
| Panel volume growth | 108 KiB | 108 KiB |
| SQLite file growth | 84 KiB | 84 KiB |
| Deployments completed, queue wait p95 | 6, 6 s | 6, 5 s |
| Peak sampled pending log entries | 400 | 0 |
| Log lines received, missing, duplicated | 1,200, 0, 0 | 1,200, 0, 0 |
| Final pending log entries | 0 | 0 |
| Controlled panel restart to usable API | 5.29 s | 4.61 s |
The queue sampler saw no pending entries in the second run. Both runs delivered every numbered log line and ended with an empty queue. An independent check recomputed route percentiles and queue wait from the raw samples, matched every numbered log at the receiver, and confirmed that zero run-labeled containers, volumes, or networks remained.
The run receipts and raw samples are under .temp_files/n06-capacity-20261118/run-OJOmmI/ and .temp_files/n06-capacity-20261118/run-NO855S/. The observed margins apply to this workload and host. The highest observed route p95 was 58.1 ms against the 350 ms budget.
Resilience drills
Run the faults separately on the same local Docker engine. Each command provisions a fresh panel, agents, and data. Replace the candidate reference to compare another image.
candidate=ghcr.io/ninedeploy/ninedeploy@sha256:113fb9e11ad3f8f94d38020e00e7744ad10c2f57c614afda89f089db2f4e51bf
node scripts/smoke-capacity-baseline.mjs --image="$candidate" --scenario=slow-node --proof=.temp_files/n06-resilience
node scripts/smoke-capacity-baseline.mjs --image="$candidate" --scenario=full-disk --proof=.temp_files/n06-resilience
node scripts/smoke-capacity-baseline.mjs --image="$candidate" --scenario=log-outage --proof=.temp_files/n06-resilienceThe baseline budgets still apply. The slow-node deployment queue p95 has a separate 45-second budget. Each scenario also requires independent evidence that the fault reached the product and that recovery completed.
| Fault | Injection | Additional acceptance |
|---|---|---|
| Slow node | Delay client-to-agent TCP chunks by 750 ms on one of the two private agents throughout the load. Keep the other agent and the panel daemon on their normal paths. | Forward delayed traffic. The authenticated node test must complete and take at least 750 ms under the fault. It must complete within 8 seconds once the delay is removed. |
| Full panel data volume | Fill a dedicated 32 MiB tmpfs mounted at the fixture's /data starting at second 19. Verify zero available bytes and an actual ENOSPC from a bounded write, then hold the pressure for eight seconds. | The public service creation probe receives a 5xx response. The panel reports SQLite full, and the rejected write leaves no service row. After releasing the filler, retry the write, verify it, and remove the test row within 12 seconds. |
| Unreachable log destination | Close the private HTTP receiver's production-facing listener for the 60-second load. Verify connection refusal from the panel fixture. Restore the same address at the end of the window. | At least 400 entries remain in the durable log queue before restoration, and none of the numbered load lines reach the sink while it is offline. Normal delivery resumes within 120 seconds, drains the queue, and delivers all 1,200 numbered lines exactly once in this connection-refused scenario. |
All scenario receipts record the load and fault budgets before setup. The disk filler refuses any filesystem other than the dedicated 32 MiB tmpfs. The node relay and log receiver controls bind to loopback inside their fixtures. Their tests preserve the sealed agent exchange and re-enable the same receiver without changing the configured destination.
Resilience measurements on November 19, 2026
The serial runs used the pinned v0.19.0 candidate and the same Docker engine and fixture image digests as the baseline. Each fault had its own fresh panel and two agents. All three fault runs passed their predefined checks. Each completed 480 scheduled reads and six deployments, delivered all 1,200 numbered log lines exactly once, and recorded zero SQLite busy or locked diagnostics.
| Measurement | Slow node | Full disk | Unreachable log destination |
|---|---|---|---|
| Acceptance checks passed | 24/24 | 29/29 | 25/25 |
| Highest API route p95 | 20.7 ms | 12.9 ms | 22.9 ms |
| Worst one-second panel event-loop p95 | 14.7 ms | 13.1 ms | 16.5 ms |
| Deployment queue wait p95 | 4 s | 5 s | 6 s |
| Peak sampled pending log entries | 0 | 0 | 1,200 |
| Panel volume growth after settling | 96 KiB | 172 KiB | 256 KiB |
| Controlled panel restart to usable API | 3.95 s | 3.00 s | 4.44 s |
- Slow node. The relay delayed 45 TCP chunks. An authenticated node test took 26 ms before the fault, 786 ms under the fault, and 25 ms after the delay was removed.
- Full disk. The 32 MiB data volume ran out of available bytes and returned
ENOSPC. The probe held the pressure for 8.00 seconds. SQLite reported full once and the public write returned HTTP 500. The inventory proved the rejected write left no row. After releasing the filler, the probe confirmed the retried write and removed its test row in 312 ms. The expected HTTP 500 belongs to the dedicated write probe. All scheduled reads still returned HTTP 200. - Unreachable log destination. The panel fixture observed a refused connection. At restoration the queue held 1,200 numbered lines and the sink had received zero. The same destination received all lines without duplicates and the queue emptied in 29.11 seconds.
The healthy control passed all 21 checks after the fixture changes. Its highest route p95 was 8.4 ms and its controlled restart took 2.58 seconds. Independent receipt checks confirmed the HTTP percentiles, the deployment completion records, every numbered log at the receiver, and cleanup of the labeled Docker resources in all four runs.
The receipts and raw samples are under .temp_files/n06-resilience-20261119/ in run-UcAGiq (slow node), run-Ettyoa (full disk), run-TGp1Ib (log outage), and run-JZeXv5 (healthy control). These measurements cover each fault in isolation under the stated workload.
Source guide (installer links and live inventory counts are normalized for this site): docs/CAPACITY_BASELINE.md.