Repository navigation
System runner: run arms that keep raw samples, with a VictoriaMetrics raw store - #285
Merged
Merged
Conversation
… 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>
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.
What changes
scripts/use_cases/run_use_case_on_systems.pycould not run an ASAPQuery-backend arm that keeps raw samples (raw-…). It always starteddata_planewith--no-forward, and with--specit stopped with "arm … keeps raw samples, which needs a raw store this script does not fill". In use case mode,--armonly accepted thenorawarms.With this change, an arm that keeps raw samples runs as follows:
data_planewith--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.--server-cgroup-directory, so CPU and memory cover the data plane plus the raw store.details.arm.raw_store;--specmode:forwards queriesandraw storein the summary.--armaccepts any arm the use case declares. When--armis not given, the runner still runs only thenorawarms.norawarms are unchanged:--no-forward, one process, its own scope.Check
python3 -m unittestinscripts/use_cases: 177 tests pass. New tests cover the raw-store wiring and theraw_storefield, and that--armaccepts a declared raw arm and rejects an undeclared one.--arm raw-eps0.01, synthetic data:k=547for three queries, exact for the success rate;🤖 Generated with Claude Code