Re: Can I setup standby taskmanagers while using reactive mode?

2023-04-27 Thread Gyula Fóra
You could also check out the Autoscaler logic in the Flink Kubernetes Operator ( https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/docs/custom-resource/autoscaler/ ) On the current main and in the upcoming 1.5.0 release the mechanism is pretty nice and solid :) It works with t

Re: Can I setup standby taskmanagers while using reactive mode?

2023-04-27 Thread Wei Hou via user
Thank you for all your responses! I think Gyula is right, simply do a MAX - some_offset is not ideal as it can make the standby TM useless. It is difficult for the scheduler to determine whether a pod has been lost or scaled down when we enable autoscaling, which affects its decision to utilize sta

Re: Can I setup standby taskmanagers while using reactive mode?

2023-04-26 Thread Gyula Fóra
I think the behaviour is going to get a little weird because this would actually defeat the purpose of the standby TM. MAX - some offset will decrease once you lose a TM so in this case we would scale down to again have a spare (which we never actually use.) Gyula On Wed, Apr 26, 2023 at 4:02 PM

Re: Can I setup standby taskmanagers while using reactive mode?

2023-04-26 Thread Chesnay Schepler
Reactive mode doesn't support standby taskmanagers. As you said it always uses all available resources in the cluster. I can see it being useful though to not always scale to MAX but (MAX - some_offset). I'd suggest to file a ticket. On 26/04/2023 00:17, Wei Hou via user wrote: Hi Flink com

Can I setup standby taskmanagers while using reactive mode?

2023-04-25 Thread Wei Hou via user
Hi Flink community, We are trying to use Flink’s reactive mode with Kubernetes HPA for autoscaling, however since the reactive mode will always use all available resources, it causes a problem when we need standby task managers for fast failure recover: The job will always use these extra stand