aplyusnin commented on code in PR #847:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/847#discussion_r1666978225


##########
flink-autoscaler/src/main/java/org/apache/flink/autoscaler/JobVertexScaler.java:
##########
@@ -95,13 +106,23 @@ public int computeScaleTargetParallelism(
             LOG.warn(
                     "Target data rate is not available for {}, cannot compute 
new parallelism",
                     vertex);
-            return currentParallelism;
+            return VertexScalingResult.normalScaling(currentParallelism);
         }
 
+        targetCapacity *= backpropagationScaleFactor;
+
         LOG.debug("Target processing capacity for {} is {}", vertex, 
targetCapacity);
         double scaleFactor = targetCapacity / averageTrueProcessingRate;
-        double minScaleFactor = 1 - conf.get(MAX_SCALE_DOWN_FACTOR);
         double maxScaleFactor = 1 + conf.get(MAX_SCALE_UP_FACTOR);
+        double minScaleFactor = 1 - conf.get(MAX_SCALE_DOWN_FACTOR);

Review Comment:
   I flipped them because I wanted not to mess up their initialization, and 
minScaleFactor's one takes more space.



-- 
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]

Reply via email to