[论文解读] Cross-Layer Decision Timing Orchestration in Cost-Based Database Systems: Resolving Structural Temporal Misalignment
论文提出一种以运行时为中心的跨层编排,通过统一风险信号将最终决策权从优化器转移到执行器,在不确定性下改善尾部延迟。
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.
研究动机与目标
- 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.
提出的方法
- 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.
实验结果
研究问题
- 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?
主要发现
- 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.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。