Skip to content

rqe-optimizer: AutoSketch baseline should rank shared fixed-size sketches (HydraKLL) by deployment cost #159

Open

Description

@milindsrivastava1997

Follow-up from S4b (#143).

Problem

autosketch::search ranks configurations by raw mem_bytes_per_instance (compare_resources) and takes no WorkloadFacts. For per-group families that's one group's sketch. For HydraKLL (one_fixed_size_sketch_for_all_groups) it's the whole sketch, so the two aren't comparable: KLL at 6.4 KB/group would always beat Hydra at ~3.4 MB, even when card(G) × 6.4 KB is far larger. The S4b eligibility gate (card(G) ≤ subpopulations) and the DeltaSet key tracker cost would also be skipped.

S4b therefore excludes one_fixed_size_sketch_for_all_groups families from AutoSketch for now, even with --allow-undeployable-families. That breaks #148's promise that the baseline and the MILP plan with the same sketches.

Proposal

  • Pass facts into autosketch::plan / search.
  • Rank by the deployment's memory as the analytical cost model computes it (instances per window × m, plus the key tracker), with insert CPU as the tiebreak.
  • Apply the same eligibility as the MILP, including the group-count gate.
  • Remove the S4b exclusion.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions