Repository navigation
Conversation
This was referenced Nov 26, 2026
This was referenced Nov 26, 2026
…s; verbatim forward Lists Answer and ResultSample in common's block, the dependency rule for ingest adapters (common, nothing, or the adapter whose wire format they extend), why ingest adapters do not build RawDataBatch, the verbatim forward and FallbackClient as the seam for the next fallback clients, and the VictoriaMetrics Remote Write and OTLP adapter crates.
This was referenced Nov 26, 2026
…ent; SQL not planned yet (step 8)
- Status accepted; the two-crate table is the starting point. - Dependency graph as built: control-plane on asap-planner only, storage on asap_sketchlib and not common, data-plane's real list, control-plane as a dev-dependency. - No engine or store traits: each has one implementation, and a trait is added with its second (decision 4). common lists what it holds: QueryResult::Table(Table), the re-exports, MAX_TIME_MS. - Install order: query, ingest, dispatcher; queries see the plan only after every engine accepts it. - Routes, including the forward-mode-only and the forward-mode-off ones; /metrics is rendered in data-plane, so internal-metrics stays a leaf. - Tests that start the engine stay in data-plane; eight micro benchmarks moved and the load generator stayed; benchmarks/scripts listed. - persist-N and view-cache code in storage, started by precompute. - Folders use hyphens, packages underscores. - Steps 2-6 keep behavior; steps 7-9 only add.
zzylol
added a commit
that referenced
this pull request
Nov 28, 2026
Step 2 of the repository layout design (#874): folder moves only, with every path reference updated. No code or behavior change. - control_plane -> crates/control-plane, data_plane -> crates/data-plane (package names unchanged) - data_plane/examples/*_bench.rs -> benchmarks/micro/ ([[example]] entries of data_plane) - bench/demo/{campaign,harness,workloads,profile} -> eval/; {live,run_live_demo.sh} -> eval/demo/; monitoring -> deployment/monitoring; build.sh, fetch_binaries.sh, run_vm_demo.sh, README.md, .gitignore -> eval/ - scripts/{profile.sh,tiered_views_cgroup.sh} -> benchmarks/scripts/ - examples/*.json -> docs/examples/ - eval/results/ is git-ignored
…e layout doc Adds the Planner/backend responsibility table (current InstallablePlan, materialized_views, raw_data_retention, DataStore), the ingestion rules (watermark, future and late samples, first window, 503 back-pressure, event-time barrier), query forwarding and --no-forward, the rejected alternatives, and the idle-stream open question, each checked against the code.
The open idle-stream question becomes decision 5: an idle watermark that advances the newest sample time by the wall-clock time since a sample last arrived, less the allowed lateness and a 1 s grace, so the last windows of a stopped stream close and a lagging stream closes nothing early.
A sample of a committed window still within its views' retention is merged into it (store and file replaced, cached results made stale); beyond retention it is dropped and counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6bo8kYWd83zXwh2Nobf
… wait for a pass's routing after a flush Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6bo8kYWd83zXwh2Nobf
… as long as wider levels computed again read them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6bo8kYWd83zXwh2Nobf
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.
Summary
bench/demo,data_plane/examplesandscripts, and ASAPQuery's protocol adapters have no place to land.docs/design/repo-layout.md. It defines:crates/{common, control-plane, precompute, storage, query, internal-metrics, data-plane, adapters/*},benchmarks/,eval/anddeployment/;common,FallbackClientas its one trait, and the engines and stores as concrete types (a trait is added with its second implementation);data-planeserves, and how/metricsstays out ofinternal-metrics;Review guide
InstallablePlan→PlanInstaller::install), thecommontypes, and the routes.commonlives in this repository; ASAPPlanner and ASAPQuery are not changed.control-plane.FallbackClienthas three; #935'sIngestEngine,QueryEngine,ViewStoreandRawDataStorewait for a second engine or store.Migration order
internal-metricsandstoragecratescommontypes andFallbackClientprecomputeandquerycrates,PlanInstaller,QueryDispatchercrates/adapterseval/baselines anddeployment/Folded in from #826 (commit 30a464d)
#826 ("design ASAPQuery-backend on ASAPPlanner's physical DAG") is closed; its still-valid parts move here, rewritten to today's types and code (checked at the layout stack top
659d53b0):InstallablePlan { wire_version, dag, query_texts },materialized_views()/ingestion_refresh_groups()/raw_data_retention(),asap-executor'scompile/instantiate/DataStore(RunStore),DeploymentCapabilities/CostInputs; and the rules (backend never changes a plan, one executor implementation, install fails before anything runs).--allowed-lateness-ms, or a barrier; idle shards never hold it), future drop (--max-future-ms), late drop andsamples_late_for_views, first window skipped unless--stream-start-ms, 503 past--max-queued-samples, the event-time barrier.x-asap-execution/x-asap-forward-reason;--no-forwardrefuses at install and answers 422.The doc change is a new commit on
docs/repo-layoutonly. The stack above (#876 → …) is not rebased now; it picks the commit up at its next restack.