feat(optimize): KRR right-sizing via cluster analysis when observability is on - #19
Open
Guimove wants to merge 1 commit into
Open
feat(optimize): KRR right-sizing via cluster analysis when observability is on#19Guimove wants to merge 1 commit into
Guimove wants to merge 1 commit into
Conversation
…abled
Adds a Phase 2b reference that routes the right-sizing dimension through
the built-in KRR integration ('qovery cluster analysis cost-recommendation')
whenever the cluster has metrics_parameters.enabled:
- server-side, read-only analysis; no kubeconfig, port-forward, or local
KRR install; --cmd-arg values are allowlisted and validated by the engine
- Qovery-proven flag set: P99 CPU, 15% memory buffer, OOMKill-aware with
25% extra buffer, --allow-hpa; timeframe matched to the Phase 1 period
- Phase 2 business-context guardrails still apply on top (minimum
thresholds, seasonal peaks, growth buffers)
- detection hook in Phase 1.3, Dimension 1 falls back to the existing
formulas when observability is off; report rows tagged KRR vs formula
- new eval scenario
evoxmusic
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
qovery-optimize right-sizes services by hand: PromQL queries against the metrics API, then peak-times-buffer formulas. Qovery now ships a first-class KRR integration ('qovery cluster analysis cost-recommendation', engine-side), which produces better numbers than the formulas: P99 percentiles, max-based limits, and OOMKill history so a container that already OOMKilled never gets under-provisioned. The skill did not use it. This PR makes KRR the right-sizing source whenever the cluster has Qovery observability enabled, with the formulas kept as fallback.
What
Design choices
Test plan
Reviewer notes