Hi everyone.
TLDR: Is it possible to configure stabilization window for TM pod using Flink official K8s operator?
Backgroud: We are using GCP Flink-on-k8s-operator for creating flink session cluster(JM & TM pods are up all the time, multiple clusters are there). Then for submitting a job to a cluster, we use the
Flinks REST API and submit the job to Jobmanager. All clusters job manager have Jars to run the job(they are downloaded when Flink JM starts) at web.upload.dir
Now we are working on migrating to Flink's official K8s operator. I have been doing a POC, and so far I am able to create a Flink Deployment which creates the JM only and when a job is submitted the TM pod comes up and the job is scheduled and after the job is completed the TM pod goes down.
I want to know
if it is possible to configure a stabilization window period here(like in K8s HPA)? Say I want the TM pod to go down
after 5min(configurable) of sitting idle. Currently, it goes down in almost a minute I guess if there are no jobs to run. We need it because, the nature of our jobs is they are submitted every few minutes during particular periods of the day, this way our TM pod keeps coming up & down, and it adds time to overall execution. Our jobs are time sensitive, we want to reduce this time taken if we have such a configuration.
I tried looking at docs, but couldn't find it, if there's already such config can someone please share? If no, what would be the alternatives to it? Thanks for your time reading this.