Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
I would be happy to answer more questions later but it would be best if you could first try the operator or at least read the documentation: https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/ You will find answers to most of your questions, and running it locally on minikube to try some test scenarios will be even more beneficial. Thanks Gyula On Fri, Jan 13, 2023 at 5:50 PM Tamir Sagi wrote: > Hey Gyula, > Thank you for fast response. > > I understand it completely. I believe the operator has similar > functionalities to the custom service we have developed regarding deploy, > update and delete clusters. > The different from our perspective is that we have added several more > capabilities and configurations for the deployment phase. > > Assuming there is an application cluster(Native k8s) with 3 Job managers > and 2 Task managers. The cluster is running for several hours. let's say In > a given point in time, the operator decides to scale the cluster up (based > on pre-defined configurations). > > you wrote > > *The operator also now contains an autoscaler module that runs within the > operator and monitors Flink clusters and determines whether a jobvertex > should be scaled up or down. It will then scale the job accordingly.* > > it sounds great, Does that mean that it simply creates a new TM pod > which then becomes part of the cluster? (I'm asking because the graph is > created while deploying the cluster at first place). > If yes, is this module can be used outside that operator? > > If not, would you please elaborate whether this scale(up/down) operation > leads to downtime? > > Best, > Tamir. > > > > > > > > > -- > *From:* Gyula Fóra > *Sent:* Friday, January 13, 2023 4:42 PM > *To:* Tamir Sagi > *Cc:* Chesnay Schepler ; user@flink.apache.org < > user@flink.apache.org> > *Subject:* Re: [EXTERNAL] Re: Flink reactive mode for application > clusters on AWS EKS > > > *EXTERNAL EMAIL* > > > Hi Tamir! > > Let me try to clarify a few points here. > > The operator works based on FlinkDeployment Custom Resources (Yaml > definition) and the operator creates the required clusters / taskmanagers > based on that. If you change the parallelism of your FlinkDeployment Yaml, > the operator will adjust the cluster size (scale up or down). > > The operator also now contains an autoscaler module that runs within the > operator and monitors Flink clusters and determines whether a jobvertex > should be scaled up or down. It will then scale the job accordingly. > The autoscaler currently only works with the default Native Deployment > mode. > > The operator does not use Flink reactive mode to perform autoscaling. > > I highly recommend trying to migrate to the operator (or at least testing > it locally so you fully understand the functionality), you will save > yourself a tremendous amount of work especially if you are looking to build > an autoscaler. > > Cheers, > Gyula > > On Fri, Jan 13, 2023 at 3:37 PM Tamir Sagi > wrote: > > Hey Gyula, > > Thanks for clarifying that. > > We created a custom service before an official Flink k8s operator was > released. That service deploys/upgrades/deletes clusters (no Yamls are > needed). It handles failures including retries and cleanups based on our > needs. Hence, moving to the official Flink operator might take a while. > > Does the operator also perform scale down? > > Regarding HPA, Task managers are created by Flink based on parallelism & > number of slots. Then the cluster has fixed size of X JMs and Y TMs. > I was thinking about adding HPA but wondered whether or not Flink will > handle the new TMs properly (I have not tested it). > > We are probably left with the option to implement the auto scaling > mechanism ourselves on top of Flink clusters. > > Best, > Tamir. > ------ > *From:* Gyula Fóra > *Sent:* Friday, January 13, 2023 8:39 AM > *To:* Swathi Chandrashekar > *Cc:* Chesnay Schepler ; Tamir Sagi < > tamir.s...@niceactimize.com>; user@flink.apache.org > > *Subject:* Re: [EXTERNAL] Re: Flink reactive mode for application > clusters on AWS EKS > > > *EXTERNAL EMAIL* > > > What I am trying to say is use the Kubernetes operator with Native > (default) mode and forget about reactive . > > The operator does everything you wwant plus has an actual autoscaler. > > Gyula > > On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar > wrote: > > Got it, so this means, we should have standalone app mode cluster which is > managed by a flink Kubernetes operator and the operator would update the > replicas
Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Hey Gyula, Thank you for fast response. I understand it completely. I believe the operator has similar functionalities to the custom service we have developed regarding deploy, update and delete clusters. The different from our perspective is that we have added several more capabilities and configurations for the deployment phase. Assuming there is an application cluster(Native k8s) with 3 Job managers and 2 Task managers. The cluster is running for several hours. let's say In a given point in time, the operator decides to scale the cluster up (based on pre-defined configurations). you wrote The operator also now contains an autoscaler module that runs within the operator and monitors Flink clusters and determines whether a jobvertex should be scaled up or down. It will then scale the job accordingly. it sounds great, Does that mean that it simply creates a new TM pod which then becomes part of the cluster? (I'm asking because the graph is created while deploying the cluster at first place). If yes, is this module can be used outside that operator? If not, would you please elaborate whether this scale(up/down) operation leads to downtime? Best, Tamir. From: Gyula Fóra Sent: Friday, January 13, 2023 4:42 PM To: Tamir Sagi Cc: Chesnay Schepler ; user@flink.apache.org Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS EXTERNAL EMAIL Hi Tamir! Let me try to clarify a few points here. The operator works based on FlinkDeployment Custom Resources (Yaml definition) and the operator creates the required clusters / taskmanagers based on that. If you change the parallelism of your FlinkDeployment Yaml, the operator will adjust the cluster size (scale up or down). The operator also now contains an autoscaler module that runs within the operator and monitors Flink clusters and determines whether a jobvertex should be scaled up or down. It will then scale the job accordingly. The autoscaler currently only works with the default Native Deployment mode. The operator does not use Flink reactive mode to perform autoscaling. I highly recommend trying to migrate to the operator (or at least testing it locally so you fully understand the functionality), you will save yourself a tremendous amount of work especially if you are looking to build an autoscaler. Cheers, Gyula On Fri, Jan 13, 2023 at 3:37 PM Tamir Sagi mailto:tamir.s...@niceactimize.com>> wrote: Hey Gyula, Thanks for clarifying that. We created a custom service before an official Flink k8s operator was released. That service deploys/upgrades/deletes clusters (no Yamls are needed). It handles failures including retries and cleanups based on our needs. Hence, moving to the official Flink operator might take a while. Does the operator also perform scale down? Regarding HPA, Task managers are created by Flink based on parallelism & number of slots. Then the cluster has fixed size of X JMs and Y TMs. I was thinking about adding HPA but wondered whether or not Flink will handle the new TMs properly (I have not tested it). We are probably left with the option to implement the auto scaling mechanism ourselves on top of Flink clusters. Best, Tamir. From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Friday, January 13, 2023 8:39 AM To: Swathi Chandrashekar mailto:cswa...@microsoft.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS EXTERNAL EMAIL What I am trying to say is use the Kubernetes operator with Native (default) mode and forget about reactive . The operator does everything you wwant plus has an actual autoscaler. Gyula On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Got it, so this means, we should have standalone app mode cluster which is managed by a flink Kubernetes operator and the operator would update the replicas based on the metrics ( autoscale ) which in-tern changes the parallelism as reactivemode is enabled. Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Friday, January 13, 2023 11:31 AM To: Swathi Chandrashekar mailto:cswa...@microsoft.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS No but the Kubernetes operator itself already provides similar feature set. Not sure why you want the reactive mode in the first place . If it's because you want to implement auto scaling on top of it, then I think the opera
Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Hi Tamir! Let me try to clarify a few points here. The operator works based on FlinkDeployment Custom Resources (Yaml definition) and the operator creates the required clusters / taskmanagers based on that. If you change the parallelism of your FlinkDeployment Yaml, the operator will adjust the cluster size (scale up or down). The operator also now contains an autoscaler module that runs within the operator and monitors Flink clusters and determines whether a jobvertex should be scaled up or down. It will then scale the job accordingly. The autoscaler currently only works with the default Native Deployment mode. The operator does not use Flink reactive mode to perform autoscaling. I highly recommend trying to migrate to the operator (or at least testing it locally so you fully understand the functionality), you will save yourself a tremendous amount of work especially if you are looking to build an autoscaler. Cheers, Gyula On Fri, Jan 13, 2023 at 3:37 PM Tamir Sagi wrote: > Hey Gyula, > > Thanks for clarifying that. > > We created a custom service before an official Flink k8s operator was > released. That service deploys/upgrades/deletes clusters (no Yamls are > needed). It handles failures including retries and cleanups based on our > needs. Hence, moving to the official Flink operator might take a while. > > Does the operator also perform scale down? > > Regarding HPA, Task managers are created by Flink based on parallelism & > number of slots. Then the cluster has fixed size of X JMs and Y TMs. > I was thinking about adding HPA but wondered whether or not Flink will > handle the new TMs properly (I have not tested it). > > We are probably left with the option to implement the auto scaling > mechanism ourselves on top of Flink clusters. > > Best, > Tamir. > -- > *From:* Gyula Fóra > *Sent:* Friday, January 13, 2023 8:39 AM > *To:* Swathi Chandrashekar > *Cc:* Chesnay Schepler ; Tamir Sagi < > tamir.s...@niceactimize.com>; user@flink.apache.org > > *Subject:* Re: [EXTERNAL] Re: Flink reactive mode for application > clusters on AWS EKS > > > *EXTERNAL EMAIL* > > > What I am trying to say is use the Kubernetes operator with Native > (default) mode and forget about reactive . > > The operator does everything you wwant plus has an actual autoscaler. > > Gyula > > On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar > wrote: > > Got it, so this means, we should have standalone app mode cluster which is > managed by a flink Kubernetes operator and the operator would update the > replicas based on the metrics ( autoscale ) which in-tern changes the > parallelism as reactivemode is enabled. > > > > Regards, > > Swathi C > > > > *From:* Gyula Fóra > *Sent:* Friday, January 13, 2023 11:31 AM > *To:* Swathi Chandrashekar > *Cc:* Chesnay Schepler ; Tamir Sagi < > tamir.s...@niceactimize.com>; user@flink.apache.org > *Subject:* Re: [EXTERNAL] Re: Flink reactive mode for application > clusters on AWS EKS > > > > No but the Kubernetes operator itself already provides similar feature set. > > > > Not sure why you want the reactive mode in the first place . If it's > because you want to implement auto scaling on top of it, then I think the > operator is a better alternative. > > > > I think you should try to understand what exactly the reactive mode > provides vs what the operator does. Reactive mode alone doesn’t do too much. > > > > Gyula > > > > On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar > wrote: > > Hi @Gyula Fóra , > > > > Does this mean, with Kubernetes operator, we can have reactive mode in > native flink which is in app mode ? [ Not just standalone app mode ] > > > > Regards, > > Swathi C > > > > *From:* Gyula Fóra > *Sent:* Thursday, January 12, 2023 11:14 PM > *To:* Tamir Sagi > *Cc:* Chesnay Schepler ; user@flink.apache.org > *Subject:* [EXTERNAL] Re: Flink reactive mode for application clusters on > AWS EKS > > > > Hey! > > I think the reactive scaling is a somewhat misunderstood feature. It only > works in standalone deployments (not in Kubernetes native for instace) and > it doesn't actually provide any autoscaling functionality on its own. > You would have to implement your scaling logic yourself somehow > (Kubernetes HPA or something similar) > > I suggest looking at the Flink Kubernetes Operator ( > https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/ > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60
Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Hey Gyula, Thanks for clarifying that. We created a custom service before an official Flink k8s operator was released. That service deploys/upgrades/deletes clusters (no Yamls are needed). It handles failures including retries and cleanups based on our needs. Hence, moving to the official Flink operator might take a while. Does the operator also perform scale down? Regarding HPA, Task managers are created by Flink based on parallelism & number of slots. Then the cluster has fixed size of X JMs and Y TMs. I was thinking about adding HPA but wondered whether or not Flink will handle the new TMs properly (I have not tested it). We are probably left with the option to implement the auto scaling mechanism ourselves on top of Flink clusters. Best, Tamir. From: Gyula Fóra Sent: Friday, January 13, 2023 8:39 AM To: Swathi Chandrashekar Cc: Chesnay Schepler ; Tamir Sagi ; user@flink.apache.org Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS EXTERNAL EMAIL What I am trying to say is use the Kubernetes operator with Native (default) mode and forget about reactive . The operator does everything you wwant plus has an actual autoscaler. Gyula On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Got it, so this means, we should have standalone app mode cluster which is managed by a flink Kubernetes operator and the operator would update the replicas based on the metrics ( autoscale ) which in-tern changes the parallelism as reactivemode is enabled. Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Friday, January 13, 2023 11:31 AM To: Swathi Chandrashekar mailto:cswa...@microsoft.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS No but the Kubernetes operator itself already provides similar feature set. Not sure why you want the reactive mode in the first place . If it's because you want to implement auto scaling on top of it, then I think the operator is a better alternative. I think you should try to understand what exactly the reactive mode provides vs what the operator does. Reactive mode alone doesn’t do too much. Gyula On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Hi @Gyula Fóra<mailto:gyula.f...@gmail.com>, Does this mean, with Kubernetes operator, we can have reactive mode in native flink which is in app mode ? [ Not just standalone app mode ] Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Thursday, January 12, 2023 11:14 PM To: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS Hey! I think the reactive scaling is a somewhat misunderstood feature. It only works in standalone deployments (not in Kubernetes native for instace) and it doesn't actually provide any autoscaling functionality on its own. You would have to implement your scaling logic yourself somehow (Kubernetes HPA or something similar) I suggest looking at the Flink Kubernetes Operator (https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=R2zk4xBZKAX7EuRWuhc5Sp%2FYBlZuv60OnSvtZ9QWG9Y%3D=0>) that will provide actual autoscaler capability for native Kubernetes deployments. Cheers, Gyula On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi mailto:tamir.s...@niceactimize.com>> wrote: Hey Chesnay, Just to be more clear, I'm talking about plans to support reactive mode for application clusters in Native Kubernetes. https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=%2FbL%2BgCndsgf%2BaJfYkMrvaqOa3f5gUXwnukBB0ddU34w%3D=0> Thanks, Ta
RE: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Got it, thanks @Gyula Fóra<mailto:gyula.f...@gmail.com> From: Gyula Fóra Sent: Friday, January 13, 2023 12:09 PM To: Swathi Chandrashekar Cc: Chesnay Schepler ; Tamir Sagi ; user@flink.apache.org Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS What I am trying to say is use the Kubernetes operator with Native (default) mode and forget about reactive . The operator does everything you wwant plus has an actual autoscaler. Gyula On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Got it, so this means, we should have standalone app mode cluster which is managed by a flink Kubernetes operator and the operator would update the replicas based on the metrics ( autoscale ) which in-tern changes the parallelism as reactivemode is enabled. Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Friday, January 13, 2023 11:31 AM To: Swathi Chandrashekar mailto:cswa...@microsoft.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS No but the Kubernetes operator itself already provides similar feature set. Not sure why you want the reactive mode in the first place . If it's because you want to implement auto scaling on top of it, then I think the operator is a better alternative. I think you should try to understand what exactly the reactive mode provides vs what the operator does. Reactive mode alone doesn’t do too much. Gyula On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Hi @Gyula Fóra<mailto:gyula.f...@gmail.com>, Does this mean, with Kubernetes operator, we can have reactive mode in native flink which is in app mode ? [ Not just standalone app mode ] Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Thursday, January 12, 2023 11:14 PM To: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS Hey! I think the reactive scaling is a somewhat misunderstood feature. It only works in standalone deployments (not in Kubernetes native for instace) and it doesn't actually provide any autoscaling functionality on its own. You would have to implement your scaling logic yourself somehow (Kubernetes HPA or something similar) I suggest looking at the Flink Kubernetes Operator (https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C233ccdc42b3b45cc63cf08daf530eef2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091887810148204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=FctuG6R%2FtbryPSBunY1onzrOLwFFvXj671WQVNni%2Fhc%3D=0>) that will provide actual autoscaler capability for native Kubernetes deployments. Cheers, Gyula On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi mailto:tamir.s...@niceactimize.com>> wrote: Hey Chesnay, Just to be more clear, I'm talking about plans to support reactive mode for application clusters in Native Kubernetes. https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C233ccdc42b3b45cc63cf08daf530eef2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091887810148204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=OPFvgaDKzKwuoD1E0xiwGqcTnxUwk3Bv04Av1dGket4%3D=0> Thanks, Tamir. From: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Sent: Thursday, January 12, 2023 6:17 PM To: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: Flink reactive mode for application clusters on AWS EKS Hey Chesnay, Thank you for your response. Since we are running our Flink jobs on EKS (Elastic Kubernetes Service) I was asking regarding Application cluster on Kubernetes. The documentations I referred to clearly state that it is not supported, the same as shown on Flink website. [cid:image001.png@01D9274A.1DEF1050] Is there any plan to support that anytime soon? Thanks Tamir. Fr
Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
What I am trying to say is use the Kubernetes operator with Native (default) mode and forget about reactive . The operator does everything you wwant plus has an actual autoscaler. Gyula On Fri, 13 Jan 2023 at 07:24, Swathi Chandrashekar wrote: > Got it, so this means, we should have standalone app mode cluster which is > managed by a flink Kubernetes operator and the operator would update the > replicas based on the metrics ( autoscale ) which in-tern changes the > parallelism as reactivemode is enabled. > > > > Regards, > > Swathi C > > > > *From:* Gyula Fóra > *Sent:* Friday, January 13, 2023 11:31 AM > *To:* Swathi Chandrashekar > *Cc:* Chesnay Schepler ; Tamir Sagi < > tamir.s...@niceactimize.com>; user@flink.apache.org > *Subject:* Re: [EXTERNAL] Re: Flink reactive mode for application > clusters on AWS EKS > > > > No but the Kubernetes operator itself already provides similar feature set. > > > > Not sure why you want the reactive mode in the first place . If it's > because you want to implement auto scaling on top of it, then I think the > operator is a better alternative. > > > > I think you should try to understand what exactly the reactive mode > provides vs what the operator does. Reactive mode alone doesn’t do too much. > > > > Gyula > > > > On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar > wrote: > > Hi @Gyula Fóra , > > > > Does this mean, with Kubernetes operator, we can have reactive mode in > native flink which is in app mode ? [ Not just standalone app mode ] > > > > Regards, > > Swathi C > > > > *From:* Gyula Fóra > *Sent:* Thursday, January 12, 2023 11:14 PM > *To:* Tamir Sagi > *Cc:* Chesnay Schepler ; user@flink.apache.org > *Subject:* [EXTERNAL] Re: Flink reactive mode for application clusters on > AWS EKS > > > > Hey! > > I think the reactive scaling is a somewhat misunderstood feature. It only > works in standalone deployments (not in Kubernetes native for instace) and > it doesn't actually provide any autoscaling functionality on its own. > You would have to implement your scaling logic yourself somehow > (Kubernetes HPA or something similar) > > I suggest looking at the Flink Kubernetes Operator ( > https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/ > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=R2zk4xBZKAX7EuRWuhc5Sp%2FYBlZuv60OnSvtZ9QWG9Y%3D=0>) > that will provide actual autoscaler capability for native Kubernetes > deployments. > > Cheers, > Gyula > > > > On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi > wrote: > > Hey Chesnay, > > > > Just to be more clear, > > I'm talking about plans to support reactive mode for application clusters > in Native Kubernetes. > > > > > https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=%2FbL%2BgCndsgf%2BaJfYkMrvaqOa3f5gUXwnukBB0ddU34w%3D=0> > > > > Thanks, > > Tamir. > > > -- > > *From:* Tamir Sagi > *Sent:* Thursday, January 12, 2023 6:17 PM > *To:* Chesnay Schepler ; user@flink.apache.org < > user@flink.apache.org> > *Subject:* Re: Flink reactive mode for application clusters on AWS EKS > > > > Hey Chesnay, > > > > Thank you for your response. > > > > Since we are running our Flink jobs on EKS (Elastic Kubernetes Service) I > was asking regarding Application cluster on Kubernetes. > > > > The documentations I referred to clearly state that it is not > supported, the same as shown on Flink website. > > > > Is there any plan to support that anytime soon? > > > > Thanks > > > > Tamir. > -- > > *From:* Chesnay Schepler > *Sent:* Thursday, January 12, 2023 4:30 PM > *To:* Tamir Sagi ; user@flink.apache.org < > user@flink.apache.org> >
RE: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Got it, so this means, we should have standalone app mode cluster which is managed by a flink Kubernetes operator and the operator would update the replicas based on the metrics ( autoscale ) which in-tern changes the parallelism as reactivemode is enabled. Regards, Swathi C From: Gyula Fóra Sent: Friday, January 13, 2023 11:31 AM To: Swathi Chandrashekar Cc: Chesnay Schepler ; Tamir Sagi ; user@flink.apache.org Subject: Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS No but the Kubernetes operator itself already provides similar feature set. Not sure why you want the reactive mode in the first place . If it's because you want to implement auto scaling on top of it, then I think the operator is a better alternative. I think you should try to understand what exactly the reactive mode provides vs what the operator does. Reactive mode alone doesn't do too much. Gyula On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar mailto:cswa...@microsoft.com>> wrote: Hi @Gyula Fóra<mailto:gyula.f...@gmail.com>, Does this mean, with Kubernetes operator, we can have reactive mode in native flink which is in app mode ? [ Not just standalone app mode ] Regards, Swathi C From: Gyula Fóra mailto:gyula.f...@gmail.com>> Sent: Thursday, January 12, 2023 11:14 PM To: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Cc: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> Subject: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS Hey! I think the reactive scaling is a somewhat misunderstood feature. It only works in standalone deployments (not in Kubernetes native for instace) and it doesn't actually provide any autoscaling functionality on its own. You would have to implement your scaling logic yourself somehow (Kubernetes HPA or something similar) I suggest looking at the Flink Kubernetes Operator (https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=R2zk4xBZKAX7EuRWuhc5Sp%2FYBlZuv60OnSvtZ9QWG9Y%3D=0>) that will provide actual autoscaler capability for native Kubernetes deployments. Cheers, Gyula On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi mailto:tamir.s...@niceactimize.com>> wrote: Hey Chesnay, Just to be more clear, I'm talking about plans to support reactive mode for application clusters in Native Kubernetes. https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C503a40530f07463cc60008daf52b880a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091864604462716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=%2FbL%2BgCndsgf%2BaJfYkMrvaqOa3f5gUXwnukBB0ddU34w%3D=0> Thanks, Tamir. From: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Sent: Thursday, January 12, 2023 6:17 PM To: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: Flink reactive mode for application clusters on AWS EKS Hey Chesnay, Thank you for your response. Since we are running our Flink jobs on EKS (Elastic Kubernetes Service) I was asking regarding Application cluster on Kubernetes. The documentations I referred to clearly state that it is not supported, the same as shown on Flink website. [cid:image001.png@01D92745.AD5EACF0] Is there any plan to support that anytime soon? Thanks Tamir. From: Chesnay Schepler mailto:ches...@apache.org>> Sent: Thursday, January 12, 2023 4:30 PM To: Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: Flink reactive mode for application clusters on AWS EKS EXTERNAL EMAIL The adaptive scheduler and reactive mode both already support application clusters since 1.13. https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/deployment/elastic_scaling/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-release-1.16%2Fdocs%2Fdeployment%2Felastic_scaling%2F=05%7C01%7Ccswathi%40microsoft.com%7C5
Re: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
No but the Kubernetes operator itself already provides similar feature set. Not sure why you want the reactive mode in the first place . If it's because you want to implement auto scaling on top of it, then I think the operator is a better alternative. I think you should try to understand what exactly the reactive mode provides vs what the operator does. Reactive mode alone doesn’t do too much. Gyula On Fri, 13 Jan 2023 at 06:33, Swathi Chandrashekar wrote: > Hi @Gyula Fóra , > > > > Does this mean, with Kubernetes operator, we can have reactive mode in > native flink which is in app mode ? [ Not just standalone app mode ] > > > > Regards, > > Swathi C > > > > *From:* Gyula Fóra > *Sent:* Thursday, January 12, 2023 11:14 PM > *To:* Tamir Sagi > *Cc:* Chesnay Schepler ; user@flink.apache.org > *Subject:* [EXTERNAL] Re: Flink reactive mode for application clusters on > AWS EKS > > > > Hey! > > I think the reactive scaling is a somewhat misunderstood feature. It only > works in standalone deployments (not in Kubernetes native for instace) and > it doesn't actually provide any autoscaling functionality on its own. > You would have to implement your scaling logic yourself somehow > (Kubernetes HPA or something similar) > > I suggest looking at the Flink Kubernetes Operator ( > https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/ > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=pu6i2YmIsU9WtvaXRIZnmEJraW9c8X5NT81F7%2BZLyVI%3D=0>) > that will provide actual autoscaler capability for native Kubernetes > deployments. > > Cheers, > Gyula > > > > On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi > wrote: > > Hey Chesnay, > > > > Just to be more clear, > > I'm talking about plans to support reactive mode for application clusters > in Native Kubernetes. > > > > > https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=8Pg0eyyEZc5SC0cBnjh14nLY2EWXOhRI3tLIK9sEGFM%3D=0> > > > > Thanks, > > Tamir. > > > -- > > *From:* Tamir Sagi > *Sent:* Thursday, January 12, 2023 6:17 PM > *To:* Chesnay Schepler ; user@flink.apache.org < > user@flink.apache.org> > *Subject:* Re: Flink reactive mode for application clusters on AWS EKS > > > > Hey Chesnay, > > > > Thank you for your response. > > > > Since we are running our Flink jobs on EKS (Elastic Kubernetes Service) I > was asking regarding Application cluster on Kubernetes. > > > > The documentations I referred to clearly state that it is not > supported, the same as shown on Flink website. > > > > Is there any plan to support that anytime soon? > > > > Thanks > > > > Tamir. > -- > > *From:* Chesnay Schepler > *Sent:* Thursday, January 12, 2023 4:30 PM > *To:* Tamir Sagi ; user@flink.apache.org < > user@flink.apache.org> > *Subject:* Re: Flink reactive mode for application clusters on AWS EKS > > > > *EXTERNAL EMAIL* > > > > The adaptive scheduler and reactive mode both already support application > clusters since 1.13. > > > > > https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/deployment/elastic_scaling/ > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-release-1.16%2Fdocs%2Fdeployment%2Felastic_scaling%2F=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=hz3WIHO4qE8kc9l5RwzWVdaZ1eXIPy329hozq%2BNM0Vs%3D=0> > > > > On 19/12/2022 10:17, Tamir Sagi wrote: > > Hey, > > > > We are running stream jobs on application clusters (v1.15.2) on AWS EKS.
RE: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS
Hi @Gyula Fóra<mailto:gyula.f...@gmail.com>, Does this mean, with Kubernetes operator, we can have reactive mode in native flink which is in app mode ? [ Not just standalone app mode ] Regards, Swathi C From: Gyula Fóra Sent: Thursday, January 12, 2023 11:14 PM To: Tamir Sagi Cc: Chesnay Schepler ; user@flink.apache.org Subject: [EXTERNAL] Re: Flink reactive mode for application clusters on AWS EKS Hey! I think the reactive scaling is a somewhat misunderstood feature. It only works in standalone deployments (not in Kubernetes native for instace) and it doesn't actually provide any autoscaling functionality on its own. You would have to implement your scaling logic yourself somehow (Kubernetes HPA or something similar) I suggest looking at the Flink Kubernetes Operator (https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2F=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=pu6i2YmIsU9WtvaXRIZnmEJraW9c8X5NT81F7%2BZLyVI%3D=0>) that will provide actual autoscaler capability for native Kubernetes deployments. Cheers, Gyula On Thu, Jan 12, 2023 at 6:23 PM Tamir Sagi mailto:tamir.s...@niceactimize.com>> wrote: Hey Chesnay, Just to be more clear, I'm talking about plans to support reactive mode for application clusters in Native Kubernetes. https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#application-mode<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-master%2Fdocs%2Fdeployment%2Fresource-providers%2Fnative_kubernetes%2F%23application-mode=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=8Pg0eyyEZc5SC0cBnjh14nLY2EWXOhRI3tLIK9sEGFM%3D=0> Thanks, Tamir. From: Tamir Sagi mailto:tamir.s...@niceactimize.com>> Sent: Thursday, January 12, 2023 6:17 PM To: Chesnay Schepler mailto:ches...@apache.org>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: Flink reactive mode for application clusters on AWS EKS Hey Chesnay, Thank you for your response. Since we are running our Flink jobs on EKS (Elastic Kubernetes Service) I was asking regarding Application cluster on Kubernetes. The documentations I referred to clearly state that it is not supported, the same as shown on Flink website. [cid:image001.png@01D9273E.B14ADF70] Is there any plan to support that anytime soon? Thanks Tamir. From: Chesnay Schepler mailto:ches...@apache.org>> Sent: Thursday, January 12, 2023 4:30 PM To: Tamir Sagi mailto:tamir.s...@niceactimize.com>>; user@flink.apache.org<mailto:user@flink.apache.org> mailto:user@flink.apache.org>> Subject: Re: Flink reactive mode for application clusters on AWS EKS EXTERNAL EMAIL The adaptive scheduler and reactive mode both already support application clusters since 1.13. https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/deployment/elastic_scaling/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-docs-release-1.16%2Fdocs%2Fdeployment%2Felastic_scaling%2F=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=hz3WIHO4qE8kc9l5RwzWVdaZ1eXIPy329hozq%2BNM0Vs%3D=0> On 19/12/2022 10:17, Tamir Sagi wrote: Hey, We are running stream jobs on application clusters (v1.15.2) on AWS EKS. I was reviewing the following pages on Flink confluence * Reactive mode [1] * Adaptive Scheduler [2] I also encountered the following POC conducted by Robert Metzger (@rmetzger_<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Frmetzger_=05%7C01%7Ccswathi%40microsoft.com%7C86c2c646cd6e4d9d221e08daf4c49f6d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638091422654166711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=UbfHEKsidqafYPLYzMY%2B2e17bARKAnp2YtywVVk5st0%3D=0>) on 06 May 2021. [3] my question is whether that feature will be supported in the future for application clusters or not. [1] https://cwiki.apache.org/confluence/display/FLINK/FLIP-159%3A+Reactive+Mode<https://nam06.safelinks.protection.outlook