Repository navigation
Closed
Labels
area: ciContinuous integration and GitHub automation.area: proxyProxy host configuration and request forwarding.area: runtimeCaddy and privileged controller runtime behavior.
Milestone
Description
Summary
Validate correctness, recovery, and bounded resource behavior with larger configurations and
concurrent management operations. This is not a benchmark contest and does not authorize invented
performance targets.
Workloads
Select and document realistic sizes from observed runtime cost, including:
- many Proxy Hosts, domains, and Redirect Hosts
- certificates, trusted CAs, binding jobs, and Access Policies
- concurrent host/policy updates and enable/disable bursts
- rapid desired-state changes and reconciliation coalescing
- concurrent reads while mutations and runtime reloads occur
- CrowdSec allow/deny and configuration state if feat: integrate CrowdSec protection #64 ships
- Forward Auth policy combinations if feat: add Forward Auth access policies #65 ships
- importer preview/result processing at representative size if feat: add Nginx Proxy Manager importer #66 ships
The existing suggestion of roughly 100 Proxy Hosts is a starting scenario, not an unsupported
product guarantee.
Verify
- final desired revision wins and the active Caddy revision matches it
- no lost updates, duplicate application, or concurrent apply corruption
- generated Caddy JSON remains valid
- API/UI requests complete within bounded test time without deadlock or starvation
- restart and transient failure recovery converge correctly
- queues, memory, CPU, connections, and file descriptors remain bounded within the documented
workload envelope - Basic Auth, IP policies, certificates, HTTP/3, and shipped Beta integrations retain correct
behavior
Acceptance criteria
- Automated deterministic scale and concurrency harness.
- Workload sizes and any limits are justified from measured evidence.
- Correctness assertions cover final revision, persisted state, runtime state, and traffic.
- Failures produce useful redacted diagnostics and clean up resources.
- Recovery after interruption/restart is tested.
- Shipped feat: integrate CrowdSec protection #64/feat: add Forward Auth access policies #65/feat: add Nginx Proxy Manager importer #66 behavior is included where relevant.
- No arbitrary throughput/latency claim is published without evidence.
Priority and sequencing
P1. Build on the current revision/reconciliation and smoke-test foundations. Keep this
correctness-at-scale work distinct from the long-duration soak in #69. Results gate #75.
Metadata
Metadata
Assignees
Labels
area: ciContinuous integration and GitHub automation.area: proxyProxy host configuration and request forwarding.area: runtimeCaddy and privileged controller runtime behavior.
Activity
test(runtime): add bounded proxy scale and concurrency coverage
test(runtime): align scale fixture preparation and stable inventory
test(runtime): cover combined auth and isolate interrupted apply chec…
test(runtime): make fault checkpoint deterministic and redact ACME di…
test(runtime): retain safe scale route failure details
docs(runtime): justify scale workload with measured evidence
RentnerKev commentedon Oct 2, 2026
Implemented directly on
mainin 7651af4, following the maintainer's direct-main workflow.The new
runtime:scalecommand and path-filtered Runtime Scale workflow run an isolated, deterministic 25-to-100-host workload with four workers, three rounds and seed 70. Each round checks 328 mutations and 407 overlapping management reads, including independent partial updates to the same policy. Persisted fields/IDs/assignments, desired and active revisions, active Caddy JSON and every workload route must agree.The same appliance exercises Basic/IP policies, Forward Auth including combined IP restrictions and failure behavior, managed CrowdSec decision/outage/supervisor recovery, verified upstream TLS, TLS/HTTP3, ACME issuance/renewal, one durable binding job's failure/restart/retry, and a 20-row NPM import with identical-source retry. A failed apply must retain the old routes and TLS while new intent remains pending; appliance restart must apply that intent. Another restart preserves inventory, import history and the completed binding job. Deletion and eight subsequent checks of unchanged final geometry complete the run.
Measured local evidence: Docker Desktop on Windows, Bun 1.4.2, candidate 1aba761, image
sha256:5a025c3e88a542a9372fae29610c5c1b26cf5464e24f787a89e82d882e78fc6c. The complete default workload passed in 378.84 seconds after image setup. Creation/growth fixture commands took 1.13/2.51 seconds; round commands took 7.73–7.92 seconds, excluding subsequent traffic/revision checks. Import raised the inventory to 110 proxy hosts, 35 redirects and 245 domains. Sampled maxima were 205 MiB, 51% CPU, 54 PIDs, 11 PostgreSQL connections and 23/12/163 web/controller/Caddy FDs. All eight final resource samples were comparable and passed; connection and web/controller FD deltas were zero, Caddy FD delta was -5 and memory delta was +3.4 MiB. The appliance limits are 1 GiB, two CPUs, 512 PIDs and a 100-connection evidence ceiling.Workload options and the measured cost are documented in README; RELEASING requires exact-release-ref evidence. Reports retain only allowlisted counts, timings, resource analyses, revisions/image identity and static failure categories. Per-run container/volume/image/network/temp cleanup is enforced. The local run left no fixture containers.
Development runs uncovered an HTTP/TLS fixture-ordering error and a background-retry race in the interruption probe; both were corrected. Two other local attempts aborted on an ACME failure and an HTTP status mismatch. Their transient causes were not established. Safe certificate/ACME and numeric route diagnostics were added without weakening assertions; the final local and CI runs provide the successful evidence, not a claim that those transient causes were fixed.
Exact-head GitHub validation:
7651af4d0d2b2589af38d2e1f221b0642912aa2b, image identity issha256:f5545e3cb5c8a4382cac9da87f709fb154d6d4c53993ecf30cbc1ff9a369c2cb, all eight checks passed, desired/active revisions match, and all eight final resource samples are comparable and passed. Final connection and web/controller FD deltas are zero; Caddy FD delta is +1 and memory delta is +3.3 MiB.No throughput/latency guarantee or production capacity claim is made. These short samples do not establish long-term leak freedom. No long-duration run was started; exact-ref release-duration evidence remains part of #75.