[Paper Review] Cross-Layer Decision Timing Orchestration in Cost-Based Database Systems: Resolving Structural Temporal Misalignment
The paper proposes a runtime-centric cross-layer orchestration that shifts final decision authority from the optimizer to the executor via a Unified Risk Signal, improving tail latency under uncertainty.
This paper analyzes execution instability in traditional cost-based database management systems (DBMS) and identifies a structural timing misalignment between optimization and execution stages that contributes to tail-latency amplification. Beyond estimation accuracy and raw execution throughput, we argue that decision timing and the availability of runtime signals materially affect robustness under uncertainty. In conventional DBMS architectures, the optimizer relies on historical statistics, the executor observes runtime data distributions and resource states, and accelerators impose up-front transfer costs and amortization constraints. This temporal asynchrony can lead to rigid early-bound decisions that fail under input-scale shifts or stale statistics. We propose a cross-layer decision timing orchestration framework that shifts final decision authority from the compile-time optimizer to the runtime executor via selective late binding of operator-level choices. A Unified Risk Signal (URS) integrates optimizer uncertainty, execution-time observations, and accelerator cost signals without collapsing them into a single static cost model. Experiments on a modified PostgreSQL prototype evaluate (i) input-scale shift, (ii) stale-statistics drift, and (iii) GPU offload break-even regimes using controlled microbenchmarks. The proposed orchestration improves execution stability, reducing P99 latency by up to 20x under severe estimation drift while maintaining comparable median latency.
Motivation & Objective
- Identify structural temporal misalignment in traditional cost-based DBMS architectures.
- Propose a cross-layer framework that relocates final decision authority from optimizer to executor.
- Define a Unified Risk Signal to guide runtime decisions incorporating optimizer, executor, and accelerator perspectives.
- Evaluate the approach's impact on execution stability and tail latency under drift, scale shifts, and accelerator amortization constraints.
Proposed method
- Introduce Late Binding to selectively finalize a small set of operator-level choices at execution time.
- Define Unified Risk Signal R = (R_opt, R_exec, R_acc) to integrate cross-layer risk signals observed at different times.
- Implement a lightweight runtime hook that switches among pre-enumerated strategy variants at operator boundaries.
- Use controlled microbenchmarks to calibrate decision thresholds for runtime changes in input size, statistics drift, and accelerator costs.
- Compare Baseline (optimizer-centric) and Independent Gates with the proposed Cross-Layer Orchestration in a modified PostgreSQL prototype.
Experimental results
Research questions
- RQ1Can shifting final decision authority to the executor reduce tail latency and improve stability under estimation drift and input-scale shifts?
- RQ2How effectively can a Unified Risk Signal guide runtime decisions across optimizer, executor, and accelerator perspectives?
- RQ3What is the impact of late-binding limited to operator-level choices on overhead and execution locality?
- RQ4How close is the runtime break-even behavior between CPU and GPU execution to empirical cost models?
- RQ5Does the approach preserve median latency while reducing P99/P95 tail latency under challenging workloads?
Key findings
- Late binding of operator-level choices can improve tail latency without degrading median latency.
- The orchestrated system reduces P99 latency by up to 20x under severe estimation drift and input-scale shifts.
- Under stale statistics, the Unified Risk Signal leads to more stable execution paths and mitigates plan instability.
- The break-even point for CPU vs GPU offload is closely tracked by URS, differing by only 2.7%.
- Accelerator-aware decisions are effectively integrated as runtime constraints rather than fixed upfront costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.