Atharv Joshi
01/03/2024, 10:47 AMWarning AutoscalerError 13m Operator java.lang.RuntimeException: Could not find required metric BUSY_TIME_PER_SEC for cbc357ccb763df2852fee8c4fc7d55f2
I am using below configurations in .yaml file.
kubernetes.operator.job.autoscaler.enabled: "true"
kubernetes.operator.job.autoscaler.scaling.enabled: "true"
kubernetes.operator.job.autoscaler.stabilization.interval: 1m
kubernetes.operator.job.autoscaler.metrics.window: 5m
kubernetes.operator.job.autoscaler.target.utilization: "0.6"
kubernetes.operator.job.autoscaler.target.utilization.boundary: "0.2"
kubernetes.operator.job.autoscaler.restart.time: 2m
kubernetes.operator.job.autoscaler.catch-up.duration: 5m
Do we need to integrate Prometheus or any external monitoring system for it to work?
Is it must?Martijn Visser
01/03/2024, 1:14 PMAtharv Joshi
01/03/2024, 1:17 PMMartijn Visser
01/03/2024, 1:24 PMMartijn Visser
01/03/2024, 1:24 PMAtharv Joshi
01/03/2024, 1:26 PMMartijn Visser
01/03/2024, 1:26 PMAtharv Joshi
01/03/2024, 1:26 PMMartijn Visser
01/03/2024, 1:28 PMMartijn Visser
01/03/2024, 1:28 PMAtharv Joshi
01/03/2024, 1:30 PMAtharv Joshi
01/03/2024, 1:33 PMAtharv Joshi
01/03/2024, 1:33 PMGyula Fóra
01/03/2024, 3:45 PMGyula Fóra
01/03/2024, 3:45 PMGyula Fóra
01/03/2024, 3:46 PMAtharv Joshi
01/03/2024, 5:57 PMPreetham Umarani
01/04/2024, 5:26 AMkubernetes.operator.job.autoscaler.enabled: "true"
kubernetes.operator.job.autoscaler.scaling.enabled: "true"
kubernetes.operator.job.autoscaler.stabilization.interval: 1m
kubernetes.operator.job.autoscaler.metrics.window: 5m
kubernetes.operator.job.autoscaler.target.utilization: "0.6"
kubernetes.operator.job.autoscaler.target.utilization.boundary: "0.2"
kubernetes.operator.job.autoscaler.restart.time: 2m
kubernetes.operator.job.autoscaler.catch-up.duration: 5mAtharv Joshi
01/05/2024, 8:43 AMkubernetes.operator.job.autoscaler.enabled: "true"
kubernetes.operator.job.autoscaler.scaling.enabled: "true"
kubernetes.operator.job.autoscaler.stabilization.interval: 1m
kubernetes.operator.job.autoscaler.metrics.window: 5m
kubernetes.operator.job.autoscaler.target.utilization: "0.3"
kubernetes.operator.job.autoscaler.target.utilization.boundary: "0.1"
kubernetes.operator.job.autoscaler.restart.time: 2m
kubernetes.operator.job.autoscaler.catch-up.duration: 5m
pipeline.max-parallelism: "720"
Observations =>
Intial Job start =>Intially 1 TaskManeger started
Type Reason Age From Message
---- ------ ---- ---- -------
Normal JobStatusChanged 9m25s Job Job status changed from RECONCILING to INITIALIZING
Normal JobStatusChanged 8m50s Job Job status changed from INITIALIZING to CREATED
Normal JobStatusChanged 6m49s Job Job status changed from CREATED to RUNNING
Normal SpecChanged 107s JobManagerDeployment SCALE change(s) detected (Diff: FlinkDeploymentSpec[flinkConfiguration.pipeline.jobvertex-parallelism-overrides : null -> 3d0541f893625ddc6af273a6ad29e71d:2,7508cf930ff0ca2a00b3aa33c346d502:2,3239d1a541dd6971d99412f88facdc58:1,cbc357ccb763df2852fee8c4fc7d55f2:5]), starting reconciliation.
Normal Suspended 107s JobManagerDeployment Suspending existing deployment.
Normal ScalingReport 107s Operator Scaling vertices: Vertex ID 3d0541f893625ddc6af273a6ad29e71d | Parallelism 5 -> 2 | Processing capacity Infinity -> Infinity | Target data rate 0.00 Vertex ID 7508cf930ff0ca2a00b3aa33c346d502 | Parallelism 5 -> 2 | Processing capacity Infinity -> Infinity | Target data rate 0.00
Normal Submit 101s (x2 over 11m) JobManagerDeployment Starting deployment
2 nd Restart => here parallelism for some vertex was reduced from 2 -> 1 (1 Taskmanager)
Normal SpecChanged 10m JobManagerDeployment SCALE change(s) detected (Diff: FlinkDeploymentSpec[flinkConfiguration.pipeline.jobvertex-parallelism-overrides : null -> 3d0541f893625ddc6af273a6ad29e71d:2,7508cf930ff0ca2a00b3aa33c346d502:2,3239d1a541dd6971d99412f88facdc58:1,cbc357ccb763df2852fee8c4fc7d55f2:5]), starting reconciliation.
Normal JobStatusChanged 8m38s (x2 over 18m) Job Job status changed from RECONCILING to INITIALIZING
Normal JobStatusChanged 8m2s (x2 over 17m) Job Job status changed from INITIALIZING to CREATED
Normal JobStatusChanged 6m17s (x2 over 15m) Job Job status changed from CREATED to RUNNING
Normal Suspended 74s (x2 over 10m) JobManagerDeployment Suspending existing deployment.
Normal ScalingReport 74s (x2 over 10m) Operator Scaling vertices: Vertex ID 3d0541f893625ddc6af273a6ad29e71d | Parallelism 2 -> 1 | Processing capacity Infinity -> Infinity | Target data rate 0.00 Vertex ID 7508cf930ff0ca2a00b3aa33c346d502 | Parallelism 2 -> 1 | Processing capacity Infinity -> Infinity | Target data rate 0.00
Normal Submit 68s (x3 over 19m) JobManagerDeployment Starting deployment
3rd Restart => here Autoscaler threw error (1 Taskmanager)
Normal ScalingReport 11m (x2 over 20m) Operator Scaling vertices: Vertex ID 3d0541f893625ddc6af273a6ad29e71d | Parallelism 2 -> 1 | Processing capacity Infinity -> Infinity | Target data rate 0.00 Vertex ID 7508cf930ff0ca2a00b3aa33c346d502 | Parallelism 2 -> 1 | Processing capacity Infinity -> Infinity | Target data rate 0.00
Normal Submit 11m (x3 over 30m) JobManagerDeployment Starting deployment
Normal JobStatusChanged 9m30s (x3 over 28m) Job Job status changed from RECONCILING to INITIALIZING
Normal JobStatusChanged 8m55s (x3 over 27m) Job Job status changed from INITIALIZING to CREATED
Normal JobStatusChanged 7m10s (x3 over 25m) Job Job status changed from CREATED to RUNNING
Warning AutoscalerError 7m9s Operator Could not find required metric BACKPRESSURE_TIME_PER_SEC for cbc357ccb763df2852fee8c4fc7d55f2
after some more restarts we increse the load and it incresed Taskmanager to more than 1 and parallelism also from 4 -> 10
Normal Suspended 2m46s (x5 over 61m) JobManagerDeployment Suspending existing deployment.
Normal ScalingReport 2m46s (x5 over 61m) Operator Scaling vertices: Vertex ID 7508cf930ff0ca2a00b3aa33c346d502 | Parallelism 4 -> 10 | Processing capacity 192.73 -> 478.00 | Target data rate 128.15
Warning ClusterDeploymentException 2m39s (x2 over 12m) JobManagerDeployment Could not create Kubernetes cluster "cdp-customer-list-job".
Normal Submit 2m39s (x8 over 71m) JobManagerDeployment Starting deployment
Normal JobStatusChanged 63s (x5 over 69m) Job Job status changed from RECONCILING to INITIALIZING
Normal JobStatusChanged 28s (x5 over 68m) Job Job status changed from INITIALIZING to CREATED
so It seems working,
But the Job was restarting after every five minutes after collecting metrics and after 3rd or 4th restart again Autoscaler was giving error for metric collection.
1. So is that expected behaviour that job will restart after each metrics collection process?
2. Is my understading of autoscaler from above observations is correct?
3. and also in this we case we are able to increase Replica so Can we also achieve vertical scaling by increasing job managers memory also?Gyula Fóra
01/05/2024, 1:54 PMGyula Fóra
01/05/2024, 1:54 PMAtharv Joshi
01/05/2024, 1:56 PMGyula Fóra
01/05/2024, 1:56 PMGyula Fóra
01/05/2024, 1:57 PMAtharv Joshi
01/05/2024, 1:57 PMGyula Fóra
01/05/2024, 1:57 PMGyula Fóra
01/05/2024, 1:57 PMAtharv Joshi
01/05/2024, 1:58 PMAtharv Joshi
01/05/2024, 1:59 PMAtharv Joshi
01/05/2024, 2:00 PMGyula Fóra
01/05/2024, 2:01 PMAtharv Joshi
01/05/2024, 2:01 PMGyula Fóra
01/05/2024, 2:02 PMAtharv Joshi
01/05/2024, 2:02 PMGyula Fóra
01/05/2024, 2:02 PMAtharv Joshi
01/05/2024, 2:02 PMGyula Fóra
01/05/2024, 2:02 PMGyula Fóra
01/05/2024, 2:03 PMAtharv Joshi
01/05/2024, 2:03 PMGyula Fóra
01/05/2024, 2:03 PMAtharv Joshi
01/05/2024, 2:04 PMGyula Fóra
01/05/2024, 2:04 PMGyula Fóra
01/05/2024, 2:04 PMGyula Fóra
01/05/2024, 2:04 PMAtharv Joshi
01/05/2024, 2:04 PMAtharv Joshi
01/05/2024, 2:04 PMGyula Fóra
01/05/2024, 2:05 PMAtharv Joshi
01/05/2024, 2:05 PMGyula Fóra
01/05/2024, 2:06 PMAtharv Joshi
01/05/2024, 2:08 PMGyula Fóra
01/05/2024, 2:08 PMAtharv Joshi
01/05/2024, 2:08 PMGyula Fóra
01/05/2024, 2:08 PMGyula Fóra
01/05/2024, 2:08 PMAtharv Joshi
01/05/2024, 2:08 PMGyula Fóra
01/05/2024, 2:09 PMAtharv Joshi
01/05/2024, 2:09 PMGyula Fóra
01/05/2024, 2:11 PMAtharv Joshi
01/05/2024, 2:11 PMAtharv Joshi
01/05/2024, 2:12 PM