Why is the parallel execution of an Apache Flink application slower than the sequential execution?
问题 I have an Apache Flink setup with one TaskManager and two processing slots. When I execute an application with parallelism set as 1, the job takes around 33 seconds to execute. When I increase the parallelism to 2, the job takes 45 seconds to complete. I am using Flink on my Windows machine with the configuration of 10 Compute Cores(4C + 6G). I want to achieve better results with 2 slots. What can I do? 回答1: Distributed systems like Apache Flink are designed to run in data centers on hundreds