tanishq-chugh commented on code in PR #6723:
URL: https://github.com/apache/hive/pull/6723#discussion_r3880542453
##########
packaging/src/kubernetes/src/java/org/apache/hive/kubernetes/operator/autoscaling/ComponentAutoscaler.java:
##########
@@ -94,8 +94,13 @@ public EvaluationResult evaluate(List<PodMetrics> metrics,
AutoscalingSpec spec,
int target;
if (clamped > currentReplicas) {
- // Scale up: use stabilized max (highest recommendation in window —
don't under-scale)
- target = scaleUpWindow.stabilizedMax();
+ if (component.startsWith(ConfigUtils.COMPONENT_LLAP + "-")) {
+ // HS2 sessions activation gate scales up the LLAP pods to atleast 1
+ // in presence of sessions. Avoid stabilizedMin in this start-up case.
+ target = currentReplicas == 0 ? clamped :
scaleUpWindow.stabilizedMin();
Review Comment:
Llap scale-up has been intentionally changed to use StabilizedMin to prevent
over scaling in case of momentary reducer burst.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]