Skip to content

Add opt-in scale comparison framework - #73

Open
jsturtevant wants to merge 20 commits into
mainfrom
observability/scale-framework
Open

jsturtevant wants to merge 20 commits into
mainfrom
observability/scale-framework

Conversation

@jsturtevant

@jsturtevant jsturtevant commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Compares the same Node.js application on Lampyr, a Deployment, and stock Knative for #1. Reports startup separately from warm load: Lampyr starts from zero Fibers with its home still running, Knative starts from zero replicas, and the Deployment measures scale-to-Pod-Ready time. Knative uses a separate cluster and includes queue-proxy resource costs.

Three local startup trials measured Lampyr at 0.44-0.63 seconds, Knative at 1.44-1.72 seconds, and Deployment Pod startup at 1.82-3.15 seconds. Images were cached, and Deployment timing has a different boundary from first-request latency.

@jsturtevant
jsturtevant added this pull request to stack #74 November 20, 2026 02:15
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from a38e2bf to 325855d Compare November 20, 2026 02:19
Copilot AI balanced review requested due to automatic review settings November 20, 2026 02:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Fixed Deployment and Service names and unsafe cleanup can overwrite or delete resources this invocation does not own, while traffic-routing and metric-calculation issues can distort benchmark comparisons.

4 open issues
What changed in this PR

Adds an opt-in framework for comparing Lampyr throughput and resource usage with the same Go workload in Kubernetes, supporting issue #1 without adding scale runs to CI.

Changes:

  • Adds a concurrency sweep with client measurements, platform metrics, and JSON/Markdown reports.
  • Provides a same-source Kubernetes baseline image and load-generator installation recipe.
  • Documents the workflow and network-path differences, with unit tests for runner helpers and reporting.
File Description
scripts/​tests/​test_scale_test.py Tests reporting, metric queries, validation, and cleanup.
scripts/​scale-test.py Implements workload orchestration, measurement, and reporting.
scripts/​fixtures/​scale-workload/​Dockerfile Builds the Kubernetes baseline from the Go example.
k8s/​observability.yaml Exposes revision labels for resource attribution.
Justfile Adds load-generator installation and comparison recipes.
docs/​scale-testing.md Explains setup, execution, and measurement caveats.
docs/​observability.md Links observability documentation to the scale framework.

Review effort: Balanced

Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from 325855d to 6903523 Compare November 20, 2026 02:25
Copilot AI balanced review requested due to automatic review settings November 20, 2026 02:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Fixed-name Kubernetes resources lack ownership tracking, so cleanup can delete a pre-existing baseline or another run’s resources even after deployment fails.

7 open issues

Review effort: Balanced

Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from 6903523 to 67741f6 Compare November 20, 2026 19:41
Copilot AI balanced review requested due to automatic review settings November 20, 2026 19:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from 67741f6 to b6f20fe Compare November 20, 2026 20:24
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from b6f20fe to 05a4291 Compare November 20, 2026 21:05
Copilot AI balanced review requested due to automatic review settings November 20, 2026 21:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from 05a4291 to 8f5b7a1 Compare November 20, 2026 21:39
@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from 8f5b7a1 to ca2157f Compare November 20, 2026 21:46
Copilot AI balanced review requested due to automatic review settings November 20, 2026 21:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsturtevant
jsturtevant force-pushed the observability/scale-framework branch from ca2157f to b5dbb77 Compare November 20, 2026 22:24
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no outstanding review issues for the opt-in benchmarking framework.

No open issues 🎉

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documented Lampyr setup cannot run the comparison on affected NetworkPolicy-enforcing clusters because Prometheus policy blocks the API-server proxy traffic used for metrics queries.

1 open issue

Review effort: Balanced

Comment thread scripts/scale-test.py Resolved
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Prometheus queries still use the policy-blocked Kubernetes Service proxy, preventing Lampyr metrics collection where the NetworkPolicy is enforced and deterministically failing the new regression test.

1 open issue

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because later scenarios can accept stale CPU samples, diluting reported averages when scraping resumes after an outage.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The default run aborts on an oha flag combination that requires a missing duration, and startup trials can also time out because idle warm resources consume capacity needed by the startup Pod.

2 open issues

Review effort: Balanced

Comment thread scripts/scale-test.py Resolved
Comment thread scripts/scale-test.py Resolved
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Startup measurements run after warm workloads are provisioned, introducing resource contention that distorts small-node comparisons and deterministically fails the new startup-ordering unit test.

2 open issues

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the opt-in benchmark framework.

1 open issue
1 resolved since last review

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A mismatched assertion in the single=True test rejects a flag that run_oha() always includes, blocking the just test-unit gate.

2 open issues

Review effort: Balanced

Comment thread scripts/tests/test_scale_test.py Resolved
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain in the opt-in benchmarking changes.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the opt-in benchmarking changes.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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.

2 participants