Skip to content

test: measure collection and the health page at 1,000 and 10,000 series - #89

Merged
somethingwithproof merged 3 commits into
mainfrom
feat/m3-performance
Nov 17, 2026
Merged

somethingwithproof merged 3 commits into
mainfrom
feat/m3-performance

Conversation

@somethingwithproof

Copy link
Copy Markdown
Owner

Stacked on #88 (base feat/m3-permissions). I'll rebase it onto main with the rest of the stack.

Closes #47

What it adds

  • tests/bin/perf.php runs on a disposable database. It uses the real collector, DigitalOcean driver, guarded transport and socket transport, with TLS verified against a test CA. Only the host is rewritten, after the operation check, so requests reach a local fixture server. It measures three cases:

    • Collect: 1,000 series in four accounts of 250. That's the most one token reads in a run, at 250 requests a minute (REQ-PERF-001).
    • Budget: 1,000 series in one account, where the request budget stops it at 250.
    • Page: the health page over HTTP at 10,000 cached series, the median of five loads (REQ-PERF-002).

    It prints the hardware and settings (REQ-PERF-003). An optional second argument adds latency, in milliseconds, to each fixture response.

  • tests/bin/perf-server.php replays the recorded DigitalOcean fixtures over TLS, with their timestamps moved to now and the rate-limit headers the driver reads.

  • CI runs the script on every job. It fails only when 1,000 series don't finish within one poller interval. The timings are printed but not compared, because runner hardware varies.

  • docs/performance.md publishes the results. The plan's targets and the README now link to it.

Results (Apple M3 Max, OrbStack VM, PHP 8.2, MariaDB 11.8)

Case Cacti 1.2.31 Cacti 1.2.x
1,000 series, 4 accounts 2.8 to 3.2 s 2.6 to 3.4 s
1,000 series, 1 account 1.1 to 1.3 s, 250 read 1.1 to 1.7 s, 250 read
Health page, 10,000 series 0.08 s 0.08 s
  • With 100 ms of latency per request, the 1,000-series run takes 106 s.
  • The run is latency-bound. It takes roughly requests × (latency + 3 ms). With the default 240 s collector time budget, 1,000 series fit while round trips stay under about 237 ms. Above that, the remaining accounts carry over to the next run.
  • Real DigitalOcean latency is part of the live checks in Research: confirm the DigitalOcean facts the design depends on #16.
  • The page result is checked by its content, not only its speed. All 10 accounts show 1,000 current series and the expected estimate.

Checks

  • 273 unit tests pass.
  • The PHP 8.0 lint, REUSE and the workflow lint (zizmor) are clean.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 185e059e-6389-45b9-bd68-2245e9805a0e
Commits

Reviewing files that changed from the base of the PR and between 3196c53 and 9c8139d.

Files selected for processing: 6

  • .github/workflows/plugin-ci-workflow.yml
  • README.md
  • docs/PLAN.md
  • docs/performance.md
  • tests/bin/perf-server.php
  • tests/bin/perf.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gitar-bot

gitar-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Gitar is working

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Gitar

tests/bin/perf.php runs the real collector, DigitalOcean driver, guarded
transport, and socket transport against a TLS fixture server, with only
the host rewritten after the operation check. It times 1,000 series in
four accounts, 1,000 in one account where the request budget stops at
250, and the health page over HTTP at 10,000 cached series, and prints
the hardware and settings. An optional latency stands in for the
provider's round trip.

CI runs it on every job and fails only when 1,000 series do not finish
within one poller interval. docs/performance.md publishes the results.

Closes #47

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
… purpose

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
The first live check on #16 measured a 384 ms median round trip from a home connection, which at the default budget reads about 620 series a run. The fixture's five series per Droplet are no longer called agent-free: CPU needs the agent (#91).

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@somethingwithproof
somethingwithproof merged commit f1767be into main Nov 17, 2026
17 checks passed
@somethingwithproof
somethingwithproof deleted the feat/m3-performance branch November 17, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance at 10,000 series

1 participant