gauravmiglanid11 commented on code in PR #533:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/533#discussion_r1117117865
##########
flink-kubernetes-operator-autoscaler/src/main/java/org/apache/flink/kubernetes/operator/autoscaler/ScalingExecutor.java:
##########
@@ -222,19 +223,30 @@ private Map<JobVertexID, ScalingSummary>
computeScalingSummary(
Map<JobVertexID, SortedMap<Instant, ScalingSummary>>
scalingHistory) {
var out = new HashMap<JobVertexID, ScalingSummary>();
+ var excludeVertexIdList =
conf.get(AutoScalerOptions.VERTEX_EXCLUDE_IDS);
evaluatedMetrics.forEach(
(v, metrics) -> {
- var currentParallelism =
- (int)
metrics.get(ScalingMetric.PARALLELISM).getCurrent();
- var newParallelism =
- jobVertexScaler.computeScaleTargetParallelism(
- resource,
- conf,
+ if (excludeVertexIdList.contains(v.toHexString())) {
+ LOG.debug(
+ "Vertex {} is part of `vertex.exclude.ids`
config, Ignoring it for scaling",
+ v);
Review Comment:
got the issue, thanks, fixing it
--
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]