Skip to content

Commit 7e51ebe

Browse files
committed
docs(dha): address review — HPA metric encoding, guard-owned HPA, scale-down pacing
Rework the seams flagged in PR #44 review (lllamnyp, IvanHunters): - Metric arithmetic (§1/§4): drop the incorrect 'pre-averaged / External AverageValue' framing. Use a Custom (Pods) metric where each standby reports its read load and the primary reports exactly the target, so stock HPA computes desired = ceil(N*avg/target) = desiredRead + primaryCount. Worked example included; Custom-vs-External made explicit. - HPA ownership (§5): the DatabaseScalingPolicy guard now renders and owns the HPA; the tenant declares only the policy. Removes the min/maxReplicas revert war, the tenant-HPA-RBAC gap, and settles CRD-vs-annotations. - Lag brake moved to the metric layer (clamp series to target while lag high + primary writing) so it freezes both directions, with hysteresis. - Pin scale-down policies (Pods/1 per ~600s) to restore step-of-1 pacing. - Custom-metrics adapter promoted to a decided section (new shared infra; no custom.metrics.k8s.io served today). Two-phase migration mechanism (Helm three-way merge deletes the omitted field regardless of writer). - Add provisioning-latency + feedback-loop, minReplicas>=2 footprint, read-disruption, and quota-alert notes. Lead with the design; move the spike findings to an appendix. - Nits: lineage-label selector, WorkloadMonitor vs engine .status.instances, drop redis/mongo from the overview framing. Signed-off-by: Alexey Artamonov <[email protected]>
1 parent 8fb221a commit 7e51ebe

1 file changed

Lines changed: 115 additions & 100 deletions

File tree

  • design-proposals/database-horizontal-autoscaling

0 commit comments

Comments
 (0)