How to scale down number of taskmanagers Context...
# troubleshooting
j
How to scale down number of taskmanagers Context: We have Kubernetes Flink Operator and have done a flink deployment with 1 Job manager and two taskmanagers I want to scale down the taskmanager replica to 1 from 2 , how can we do this ? Couldn't find the option to scale down taskmanager in FlinkDeployment kind
g
You simply set the desired job parallelism and the operator will adjust the number of tms accordingly
j
during initial deployment we deploy with two taskmanager , now we want to edit the running deployment and set the taskmanager to 1 , there is no option to do this
g
I think you have the logic backward. Using the FlinkDeployment you declare your job specification, parallelism etc. And then the operator creates a cluster with exactly the right amount of TaskMAnagers
if you want to decrease the number of taskmanagers then you need to decrease the parallelism of the job so it requires less resources, then the operator will adjust the number of tms accordingly