Re: Flink running same task on different Task Manager

2022-08-18 Thread Lijie Wang
Hi Great, -> Will these methods work? I think it will not work. It can control that the slots are evenly distributed on the TM, but cannot control the correspondence between tasks and slots. For example, the Flink cluster has 2 TMs, each TM has 4 slots(so total 8 slots in this cluster), and your j

Re: Flink running same task on different Task Manager

2022-08-18 Thread Great Info
Kindly help with this, I got stuck -> If so, I think you can set Task1 and Task2 to the same parallelism and set them in the same slot sharing group. In this way, Task1 and Task2 will be deployed into the same slot(That is, the same task manager). *Updating task details * *Task1- Source some stati

Re: Flink running same task on different Task Manager

2022-07-14 Thread Great Info
-> If so, I think you can set Task1 and Task2 to the same parallelism and set them in the same slot sharing group. In this way, Task1 and Task2 will be deployed into the same slot(That is, the same task manager). *Updating task details * *Task1- Source some static data over HTTPS and keep it in me

Re: Flink running same task on different Task Manager

2022-07-13 Thread Lijie Wang
Hi Great, -> Is there a way to set the restart strategy so that only tasks in the same slot group will restart during failure? No. On task failover, all tasks in the same region will be restarted at the same time (to ensure the data consistency). You can get more details about failover strategy i

Re: Flink running same task on different Task Manager

2022-07-13 Thread Great Info
thanks for helping with some inputs actually, I have created task1 and task2 in separate slot groups, thought it would be good if they run in independent slots. Also now facing some issues during restarts. whenever task1 has any exception entire job is restarting. Is there a way to set the restar

Re: Flink running same task on different Task Manager

2022-06-15 Thread Lijie Wang
Hi Great, Do you mean there is a Task1 and a Task2 on each task manager? If so, I think you can set Task1 and Task2 to the same parallelism and set them in the same slot sharing group. In this way, the Task1 and Task2 will be deployed into the same slot(That is, the same task manager). You can g

Re: Flink running same task on different Task Manager

2022-06-14 Thread Weihua Hu
Hi, IMO, Broadcast is a better way to do this, which can reduce the QPS of external access. If you do not want to use Broadcast, Try using RichFunction, start a thread in the open() method to refresh the data regularly. but be careful to clean up your data and threads in the close() method, otherw

Flink running same task on different Task Manager

2022-06-13 Thread Great Info
Hi, I have one flink job which has two tasks Task1- Source some static data over https and keep it in memory, this keeps refreshing it every 1 hour Task2- Process some real-time events from Kafka and uses static data to validate something and transform, then forward to other Kafka topic. so far, e