echauchot commented on code in PR #22985:
URL: https://github.com/apache/flink/pull/22985#discussion_r1307494302


##########
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/Executing.java:
##########
@@ -144,6 +188,17 @@ private void maybeRescale() {
         }
     }
 
+    private Duration timeSinceLastRescale() {
+        return Duration.between(lastRescale, Instant.now());
+    }
+
+    private void rescaleWhenCooldownPeriodIsOver() {

Review Comment:
   ok thanks for pointing out. That being said, with the period restart 
behavior (see previous comment), in the above case, on first call 
`maybeRescale` will be scheduled for 08:01:40 and on second call `maybeRescale` 
will be scheduled for 08:01:45. You want that we simply drop the last schedule 
so that only one `maybeRescale` is scheduled at a time ?



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to