Hi all, I'm having trouble with fixing parallelism...
# troubleshooting
a
Hi all, I'm having trouble with fixing parallelism of a particular job vertex, when adaptive autoscaler is enabled and Flink Operator is used. I've used
sourceOperator.setUidHash('some uid hash')
to set vertex id for source operator, and then I added
'some uid hash'
to
job.autoscaler.vertex.exclude.ids
config parameter. I also explicitly set parallelism for source operator to some value. But at some point I see that source vertex parallelism is increased. What is the proper way to disable Flink Operator autoscaler for a particular operator?
馃憖 2
We have Flink 1.18, Flink Operator 1.7, source operator is
KafkaSource
from flink-connector-kafka 3.0.1-1.18.
g
Are you sure the uid has is the same as the vertex id for the source?
You can check the vertex id on the ui when you click on the source
a
馃 Where in Flink UI I can see vertex ids?
I've got job graph via REST API
/jobs/jobId
, and source vertex id is different there from what I set with
sourceOperator.setUidHash('some uid hash')
. This explains why Operator scales this vertex. But why its id is different from what I've set? And how to set it then?
g
I don鈥檛 think you can set the vertex id but it will stay the same for given uids. A vertex consists of multiple operators so the id is something different
So you can exclude after you submitted it , that should not be a problem
a
So vertex id generation is stable across job submissions? Even if I delete job from cluster and then recreate it?
g
Yes
As long as the uids are the same the vertex ids will also be the same I believe
But please let me know if I鈥檓 wrong 馃檹
a
Thanks, I'll try to find corresponding Flink source code, which is responsible for this process. Ideally I'd like to get this vertex id upfront and bake it into my job's deployment script, which posts FlinkDeployment CRD to k8s cluster.
g
I鈥檓 also interested in this if you figure it out out :)