Repository navigation
System runner: plan the supported queries together before one instance per query - #288
Merged
Merged
Conversation
…e per query When ASAPQuery-backend's control_plane cannot plan all of a spec's queries together, the runner planned each query alone and ran one data plane per query, each written the whole dataset. Now, after finding which queries plan alone, it plans those together once more and runs them on one instance; only if that fails, or takes longer than --joint-plan-timeout (default 1800 s), does it fall back to one instance per query. Planning with a time limit records the timeout in the planner summary. 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.
When ASAPQuery-backend's
control_planecannot plan all of a spec's queries together (one unsupported query is enough),plan_groupsplanned every query alone and the runner started one data plane per query, each written the whole dataset. VictoriaMetrics answers all queries on one instance, so the backend's ingest CPU and memory were counted once per query.Change
plan_groupsinscripts/use_cases/run_use_case_on_systems.py:--joint-plan-timeout(default 1800 s), fall back to one instance per query.Planning together runs under the time limit; a timeout is reported as the reason and counted as
planner timeoutsin the planner summary.Checks
scripts/use_casestests, with new cases: supported queries planned together, falling back when they do not plan together or take too long, and no second joint attempt on the same set.noraw-ignore-eps0.01, one trial), ASAPQuery-backend 8263b22b, VictoriaMetrics v1.154.1: "5 of 6 queries plan; they plan together, one instance". Before, the same arm ran 5 instances.🤖 Generated with Claude Code