Repository navigation
system-bench: ASAPQuery-backend adapter and VictoriaMetrics without a plan - #270
Merged
Merged
Conversation
… plan Step 6b of #267 (decisions D11, D12), stacked on 6a (#269): - prometheus_api holds what the end-to-end systems share: the Remote Write encoder and sending (moved from systemeval, with a request built from harness samples) and the PromQL instant query over HTTP (moved from systemeval's query module, with extra parameters such as nocache=1). systemeval uses them from there; its output is unchanged. - systemeval::asapquery_backend_server: ASAPQuery-backend as an engine under test. It writes each refresh chunk by Remote Write, closes the panes through the chunk end (watermark), and asks each query's PromQL. It takes no plan file and one arm per server start. - The VictoriaMetrics adapter runs an arm with no plan file (a plans: false variant) the normal way: Remote Write, force_flush, the query's MetricsQL or PromQL text with nocache=1; the workload's metrics are deleted at install and at drop. Its cgroup and config file are optional; a plan arm still needs both. - benchmark-external run takes --engine asapquery-backend with --asapquery-backend-url. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GordonYuanyc
force-pushed
the
system-bench/end-to-end-adapters
branch
from
November 25, 2026 09:31
ae58ceb to
0c6ab19
Compare
GordonYuanyc
changed the base branch from
harness/declared-truth-and-plan-free-variants
to
main
November 25, 2026 09:31
- Answers of an arm without a plan follow the harness's keys: prometheus_api::query_text_arm drops __name__ unless the query is a bare selector, keeps non-finite values and refuses two answers for one series, as the plan arm does; both adapters use it. - Each chunk is written in time order (as systemeval does), so a later metric of the chunk does not move the server's watermark past an earlier one. - ASAPQuery-backend's footprint reads asap_view_bytes and asap_raw_data_bytes from /metrics; its adapter moves to engines_external beside the other server adapters, and both adapters need a cgroup again. - VictoriaMetrics: the stream-aggregation config is needed only by arms with a plan file (the flag is optional); one connection type (VictoriaMetricsConnection, formerly Http) with one force_flush. - Tests: __name__, NaN, duplicates, write order over three batches, a busy answer, the footprint, one VictoriaMetrics arm at a time, the fake engine refusing server flags. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 6b of #267 (decisions D11 and D12). #269 is merged; this PR is now based on main.
What changes
system_bench::prometheus_api: the pieces both end-to-end systems share, moved out of systemeval so they are written once:remote_write: the Remote Write encoder and sending (send,send_until_accepted), plusrequest_of(&[Sample])from harness samples;query: the PromQL instant query over HTTP (ask, andask_withfor extra parameters such asnocache=1).systemeval now uses them from there; its output is unchanged.
engines_external::asapquery_backend_server, engineasapquery-backend):unreported: the server has no version endpoint.plans: falsevariant from harness: declared statistics in workloads, --truth declared, and variants without plans #269):force_flush;nocache=1.Plan arms are unchanged.
cgroupandstream_aggregation_configare now optional onVictoriaMetricsServer, for a driver that measures no CPU (systemeval, in 6c); a plan arm without them is refused.benchmark-external run --engine asapquery-backend --asapquery-backend-url <url> --server-cgroup-directory <dir> [--server-ssh-host <host>], with--warmup 0 --runs 1.lcm→least_common_multiplein the VictoriaMetrics adapter, as main did elsewhere.After the independent review (commit 2e9d7f9)
prometheus_api::query_text_arm:__name__is dropped unless the query is a bare selector, as the plan arm does;/metrics(asap_view_bytes,asap_raw_data_bytes).engines_external, beside the other server adapters.--victoriametrics-stream-aggregation-configflag is now optional.VictoriaMetricsConnection(formerlyHttp), with oneforce_flush.__name__handling, NaN, and duplicate series;Notes
Systemtrait; 6c makes it drive these adapters and removes the trait.Checked (macOS)
cargo fmt --check;cargo clippy -p system-bench -p aqpbm-cli --all-targets -- -D warnings, with and without--all-features.system-bench/tests/end_to_end_adapters.rsruns both adapters against a recording fake server, checking the samples written, the watermark,delete_series,nocache=1, the answers, and the refusals. Also new CLI tests forasapquery-backend.🤖 Generated with Claude Code