Raihan Sunny
05/06/2024, 10:39 AMexecuteAsync() to deploy multiple jobs from the same file. This indeed is the case when running the job locally using the CLI with something like /bin/flink run -pym job (I'm using PyFlink btw) and I can see multiple jobs running in the UI. However, when I try to use FlinkDeployment for the same job, it seems that only the first job gets submitted. The second job is never submitted although the code leading up to executeAsync() does get executed. Is this supposed to be the case, or have I made a mistake?Nicholas Erasmus
05/09/2024, 11:21 AMNicholas Erasmus
05/09/2024, 11:23 AMRaihan Sunny
05/12/2024, 6:18 AMNicholas Erasmus
05/13/2024, 7:12 AMIs it possible to deploy jobs within a session cluster using varying requirements (cpu, memory) for taskManagers?yeah 100% I have a little local example here:
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
name: basic-session-deployment-only
spec:
image: flink:1.18
flinkVersion: v1_18
flinkConfiguration:
taskmanager.numberOfTaskSlots: "3"
serviceAccount: flink
jobManager:
resource:
memory: "700m"
cpu: 0.4
podTemplate:
spec:
containers:
- name: flink-main-container
image: flink:1.18
taskManager:
resource:
memory: "1024m"
cpu: 0.3
podTemplate:
spec:
containers:
- name: flink-main-container
image: flink:1.18
Above creates the cluster. Below creates a job:
apiVersion: flink.apache.org/v1beta1
kind: FlinkSessionJob
metadata:
name: some-job
spec:
deploymentName: basic-session-deployment-only
job:
jarURI: http://host.minikube.internal:8000/some-job-1.0.0-SNAPSHOT.jar
parallelism: 1
upgradeMode: stateless
args: ["--releaseVersion", "v3.0.0", "--lastRunDateTime", "firstRun"]Nicholas Erasmus
05/13/2024, 7:12 AMSo, some jobs require some other jobs and they act as an Application together.I still don't see why they need to be run sequentially tbh
Raihan Sunny
05/13/2024, 1:51 PMAbove creates the cluster. Below creates a job:Well as you see there isn't any "taskManager" block in the "basic-session-deployment-only" job. From what I understand, this job will have its taskManager cpu and memory configuration inherited from the session cluster you defined above. If I want another job "basic-session-deployment-2", that would also have the taskManager configuration from the session cluster, right?
Nicholas Erasmus
05/14/2024, 9:37 AM