Skip to content

System runner: run arms that keep raw samples, with a VictoriaMetrics raw store - #285

Merged
GordonYuanyc merged 1 commit into
mainfrom
raw-store-for-raw-arms
Dec 2, 2026
Merged

GordonYuanyc merged 1 commit into
mainfrom
raw-store-for-raw-arms

Conversation

@GordonYuanyc

Copy link
Copy Markdown
Collaborator

What changes

scripts/use_cases/run_use_case_on_systems.py could not run an ASAPQuery-backend arm that keeps raw samples (raw-…). It always started data_plane with --no-forward, and with --spec it stopped with "arm … keeps raw samples, which needs a raw store this script does not fill". In use case mode, --arm only accepted the noraw arms.

With this change, an arm that keeps raw samples runs as follows:

  • The runner starts a VictoriaMetrics as the raw store, then starts data_plane with --raw-store-url <it> instead of --no-forward. Every accepted Remote Write reaches the raw store, and queries the plan does not answer are forwarded to it.
  • Both processes run in one systemd slice. The slice is the cgroup passed to the harness as --server-cgroup-directory, so CPU and memory cover the data plane plus the raw store.
  • Disk counts the views and the raw store's data.
  • The arm records which raw store it used:
    • use case mode: details.arm.raw_store;
    • --spec mode: forwards queries and raw store in the summary.
  • In use case mode, --arm accepts any arm the use case declares. When --arm is not given, the runner still runs only the noraw arms.

noraw arms are unchanged: --no-forward, one process, its own scope.

Check

  • python3 -m unittest in scripts/use_cases: 177 tests pass. New tests cover the raw-store wiring and the raw_store field, and that --arm accepts a declared raw arm and rejects an undeclared one.
  • Use case 4, --arm raw-eps0.01, synthetic data:
    • 4 of 4 queries supported, none failed;
    • plans: KLL k=547 for three queries, exact for the success rate;
    • the backend's cgroup is the shared slice;
    • 3.6 minutes.
python3 scripts/use_cases/run_use_case_on_systems.py 4 --arm raw-eps0.01

🤖 Generated with Claude Code

… raw store

An arm that keeps raw samples now starts a VictoriaMetrics next to the data
plane and passes it as --raw-store-url instead of --no-forward, so writes reach
the raw store and queries the plan does not answer are forwarded to it. Both
processes run in one systemd slice, which is the cgroup the harness measures,
and the raw store's data counts toward disk. A use case's declared arms may be
named with --arm; the default arms are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GordonYuanyc
GordonYuanyc merged commit b834e6e into main Dec 2, 2026
2 checks passed
@GordonYuanyc
GordonYuanyc deleted the raw-store-for-raw-arms branch December 2, 2026 18:22
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.

1 participant