Regarding flink kubernetes autoscaler: I actually ...
# troubleshooting
a
Regarding flink kubernetes autoscaler: I actually think that it would scale better of parallelism was simply set same on all task operators. Is there some alternative to check? thanks! I see that most resource intense task has parallelism "5", but some other relatively (but much less) intense task has only "1". If that was spread, then Im sure my heaviest task will be happy with parallelism "4". Considering I set 2 slots per task manager, it would allow to reduce one node - on my test load. I suspect on larger scale it may also have way more nodes than it needs. Tasks share same underlying hardware, so I am not sure if this separate parallelism has really that much benefits.
t
i don't disagree that it's simpler that way. we run nearly all our non-autoscaled jobs exactly like that (and with a single slot) just to keep things easier to reason through. it does have some benefit, though - imagine a filesink, with 100 tasks writing to partitioned files on s3 or something. that's
100*numFilePartitions
of active writes. if instead it could be scaled down to 10 sink tasks, that's
10*numFilePartitions
... and that makes s3 much happier.
a
https://www.ververica.com/blog/autoscaling-apache-flink-with-ververica-platform-autopilot Something like this: pipeline scaling. Task managers are uniform in resources, so distributing load equally may make sense in many cases
but yes, I get that sink scaling will be a little more problematic.. Im not sure how s3 works really, I work with kafka only in flink. But option to stick to pipeline parallelism would reduce operational costs by 33-50% in my case
but looking at veverica, my experience is not unique
at some point, number of task managers go from 1-> 4, with one executing like 50% of load like
g
job level scaling would be the simplest option to implement and we started like that also for the autoscaler but we found that with task level scaling we get a more predicatable behaviour. Uneven scheduling may happen in some cases but the flink community has been making some improvements there and seem to be that the benefits outweigh the downsides
a
OK, thanks for replies! hmm.. considering I need to autoscale once per couple of months, I can also just configure alert to scale parallelism up I think, so it may not be that much of a problem. I can write some simple autoscaler in future I guess too.