Re: How does Job manager schedule jobs to task managers
Flink does not necessarily spread the tasks across all available TMs. It depends a little bit on the topology of the job, because in general it is beneficial to deploy downstream tasks to the same machines where their input tasks run. I described the process in more detail here . This link  also contains some information regarding Flink's internal scheduling.