You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit acebd27
Browse filesBrowse the repository at this point in the historyBrowse files
feat(planner): build rqe-optimizer Raqes and facts from the workload config (#798)
* feat(planner): build rqe-optimizer Raqes and facts from the workload config
Converts the workload's optimizer items into sketch-bench `Raqe`s (one per
query occurrence), loads per-metric workload facts, and solves with
`rqe_optimizer::milp::minimize`. `asap-optimizer-cli --milp` prints the
chosen deployments and plan cost; it writes no configs yet.
`AtomicCostEntry` is now rqe-optimizer's type instead of a local copy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(planner): harden MILP inputs and CLI per review
- Raqe ids carry the item index, so items differing only in T or SLA
get distinct ids.
- `OptimizerItem.occurrences` counts merged leaves exactly;
`query_frequency_hz` is derived from it.
- An item with more than one statistic is a `MilpError`, not a panic.
- Eligibility is computed once per Raqe for the debug log and the
unservable check; the item sort is total.
- The MILP cost table loader rejects non-finite or negative rows;
`--w-cpu`/`--w-mem` must be finite and >= 0.
- `--label-set-facts` conflicts with `--milp`; missing `metrics:` hints
report `MissingMetricHints`; the MILP path warns on default SLAs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(planner): accept accuracy at the SLA boundary; reject an all-zero objective
- Accuracy tolerances get a 1e-9 slack so `1 - sla` rounding doesn't
reject a cost row measured exactly at the boundary.
- `asap-optimizer-cli --milp` rejects `--w-cpu`/`--w-mem` both 0, which
would make the solver's pick arbitrary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments