RE Kubernetes operator - When using `FlinkSessionJ...
# troubleshooting
c
RE Kubernetes operator - When using
FlinkSessionJob
how do we manage the
FlinkDeployment
? Just messing around with deploying two sessions to a
FlinkDeployment
and then later applied some changes to
FlinkDeployment
and the sessions fell into the state
RECONCILING
with a "missing session job" error and wouldn't start. Is there a reason for this? I would have assumed that a change would have gracefully restarted the two sessions with the new FlinkDeployment changes
Theres literally no documentation on what this error means or what its for: https://www.google.com/search?q=%22missing+session+job%22
g
do you have HA enabled on the FlinkDeployment? There is currently no good granular upgrade logic implemented for session jobs when the underlying cluster is upgraded
but if you have HA enabled on the FlinkDeployment and checkpointing enabled on the session jobs, it should be fine
c
Ahh -- probably not - we started with just the deployment yaml first and were planning on doing additional configuration. I'll look into those first. Is there a best practice? I feel like just a
FlinkDeployment
without individual
FlinkSessionJob
is sortof the safest in that each job would have its own cluster. We werent really set on either path yet
g
FlinkDeployment with a job spec will create an Application cluster, this is great for proper prod jobs with good isolation etc.
SessionJobs are more designed in interactive / short running use-cases
The session job upgrade story is not great at the moment
so for the best prod experience for a few dedicated streaming applications I recommend the FlinkDeployment application cluster
👍 1
c
Yea, I think that makes sense. We have an AWS EMR cluster, so we are used to just creating Yarn sessions, but that probably isnt the best path on kubernetes
g
From a resource perspective you dont really win anything with sesssion vs app cluster
the only difference is that you have 1 extra jobmanager for each FlinkDeployment
but for larger jobs this is negligiable and the isolation wins in the long run 🙂
c
makes sense -- most of ours tend to be large anyways