Skip to content

Optimizer: enforce accuracy_sla and latency_sla in candidate eligibility #757

Closed as not planned

Description

@milindsrivastava1997

Problem

ControllerOptions.accuracy_sla and latency_sla are parsed but unused; nothing stops the optimizer picking an under-provisioned sketch.

Change

Enforce both as candidate eligibility filters (per item, see the AQE-item issue):

  • Accuracy: measured AtomicCostEntry.query_accuracy[metric(family)] vs accuracy_sla, via a fixed per-family metric table in the planner (e.g. CMS → relative_error_mean, KLL → mean_rank_err, HLL → relative_error, CMS-heap → 1 − recall_at_k). 0.0 = unconstrained. Missing measurement = ineligible. Exact accumulators always pass.
  • Latency: estimated query CPU seconds (groups × (query + (n−1)·merge), or the Subtract form) ≤ latency_sla (seconds). 0.0 = unconstrained.

Known gaps (tracked separately): quantile rank error ≠ value error; accuracy is measured on a single instance, not after merging.

Refs #526.

Part of #753.

🤖 Generated with Claude Code

Activity

  1. milindsrivastava1997 commented on Oct 5, 2026

    @milindsrivastava1997
    ContributorAuthor

    This was generated by AI during triage.

    The CMS portion of this issue is blocked by #762. relative_error_mean is not a valid normalized SLA metric for the benchmarked CMS output, and whether CMS should remain eligible for SUM/COUNT is being decided with the aggregation capability mapping there. Once #762 establishes the serving families and their accuracy metrics, this issue can apply the resulting eligibility policy.

  2. milindsrivastava1997 commented on Oct 5, 2026

    @milindsrivastava1997
    ContributorAuthor

    This was generated by AI during triage.

    #757 is also blocked by #787. Restricting CMS to top-k requires deployable replacement summaries for SUM and COUNT; until the data-plane and query engine support those summaries, enforcing the revised capability mapping would make those query paths unservable.

  3. milindsrivastava1997 commented on Oct 27, 2026

    @milindsrivastava1997
    ContributorAuthor

    Superseded by the rqe-optimizer MILP path (#790, ProjectASAP/ASAPBench#129, #794); the greedy optimizer was removed in #807. Accuracy SLAs come from sketch-bench saturation curves (#804); latency SLA is handled in rqe-optimizer (ProjectASAP/ASAPBench#188).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

asap-plannerenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions