Hi Flink Community, does anyone know if it is poss...
# troubleshooting
b
Hi Flink Community, does anyone know if it is possible to use Task-Local Recovery when using the Flink Kubernetes Operator? I am specifically trying to understand how to configure Volume Claims that persist across Task Manager pod restarts/autoscaling/etc. I found this PR, which makes it seem like this feature is not supported, but I am unsure. Thanks in advance! @Ryan D'Souza
g
As far as I know task local recovery works out of the box during failover scenarios. The taskmanager pods that do not fail will not be restarted and they will get their state back.
However there is no way to use local recovery during job upgrades when all the taskmanagers are restarted
b
I see, that falls into the scenario that I am testing. I am using the reactive scheduler for autoscaling purposes and I see that the state of the operators change to
RESTARTING
when I add/remove task managers. Do you know if there is a way to get around this?
g
I would get rid off the reactive scheduler , and turn on the autoscaler built into the flink operator itself
The reactive mode doesn’t work well with the Kubernetes operator. There are a bunch of mail threads discussing this but that’s the short version of it. It’s a somewhat legacy solution, we have a nice autoscaler now .
b
We considered the built in autoscaler but we would run into out of order issues because the parallelism between operators can be different which results in rebalancing
For context, our pipelines contain CDC (change data capture) data.
g
Sounds like you need some keyby to actually enforce order
In any case , reactive mode is not the way to go if you ask me
The built in autoscaler should work well in most cases as long as the pipeline is designed correctly
The autoscaler scales chained operator groups together . If you need strict order , make sure they are chained or use keyby , that’s the only way to guarantee it
But I think that’s more or less just good practice for streaming pipelines
b
We are using the Table API - is the key by operation you’re referring to possible with it?
g
Hm in that case this may be a table api issue, I would consider opening a jira ticket
b
Are you saying that the rebalance between operators should not result in out of order issues?
g
Yes I think it shouldn’t break the logic. So if there is a key we should aim to preserve order for that
b
Based on this Stackoverflow post, it seems: > Calling rebalance() causes data to be repartitioned in a round-robin fashion and can help to mitigate data skew in certain scenarios. Based on that, I think the out of orderness would be expected rather than there being a bug because records are repartitioned in a round-robin manner. Do you agree with this?