Skip to content

test: add proxy scale and concurrency coverage #70

Closed

Description

@RentnerKev

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:

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

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.

Activity

  1. added this to the v1.0.0-beta.1 milestone on Sep 12, 2026
  2. added
    area: proxy
    area: runtime
    area: ci
    on Sep 12, 2026
  3. added
    related
    on Sep 12, 2026
  4. RentnerKev commented on Oct 2, 2026

    @RentnerKev
    MemberAuthor

    Implemented directly on main in 7651af4, following the maintainer's direct-main workflow.

    The new runtime:scale command 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:

    • CI: 945 ordinary tests and 147 database integration tests passed, plus fuzz, Rust, build, typecheck, lint and format.
    • Runtime Scale: the bounded default workload passed in 198.15 seconds after image setup, with a retained sanitized JSON report. Target SHA is 7651af4d0d2b2589af38d2e1f221b0642912aa2b, image identity is sha256: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.
    • Runtime Reliability: short/current profile.
    • Production Smokes: proxy, appliance, backup/restore, ACME and upstream TLS.
    • Workflow Lint, Gitleaks, Bun Audit, CodeQL and OpenSSF Scorecard.

    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.

  5. removed
    related
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: proxyarea: runtime

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions