当前位置:网站首页>Flink Learning 11: Flink Program Parallelism
Flink Learning 11: Flink Program Parallelism
2022-08-05 07:11:00 【hzp666】
1. Introduction to program parallelism

A slot is a resource group,
Generally, by default, the number of slots on each node is the number of CPU cores on the node.
flink will split a task into multiple subtasks,
and then the subtasks will be executed by multiple parallel threads.
The number of parallel threads of a task is called the parallelism of the task.
flink will assign subtasks to slot execution, so the maximum parallelism of the task is determined by the number of slots available on each TaskManager.

For example, there are 4 slots on a taskManager, then the taskManager will allocate 25% of the memory for each slot.
One or more threads can run in the same slot.

Threads in the same slot share the same Java virtual machine JVM
Tasks in the same JVM share TCP connection and heartbeat information
A slot of Task Manager represents an available thread, ps: slot only corresponds to memory isolation, not CPU isolation
By default, flink allows subtasks to share slots, even if they are subtasks of different tasks, but if they are from the same job.This sharing can achieve better resource utilization.

2. Introduction to parallelism at the execution level


After generating the environment as above, set setParallelism to 1, which means to set the parallelism to 1.
边栏推荐
- 原来使Maya Arnold也能渲染出高质量作品!超赞小技巧
- 蓝牙gap协议
- RNote108---显示R程序的运行进度
- JS控制只能输入数字并且最多允许小数点两位
- Redis进阶
- 2022起重机司机(限桥式起重机)考试题库及模拟考试
- Falsely bamboo brother today and found a localization of API to use tools
- typescript61-泛型工具类型(pick)
- Shiny04---Application of DT and progress bar in shiny
- 1, Citrix XenDesktop 2203 AD domain system installation (1)
猜你喜欢
随机推荐
在STM32中使用printf函数
1, Citrix XenDesktop 2203 AD domain system installation (1)
自媒体人一般会从哪里找素材呢?
The NDK compiler so libraries
【网友真实投稿】为女友放弃国企舒适圈,转行软件测试12k*13薪
LabVIEW中如何实现任意形状的不规则按键
2022熔化焊接与热切割操作证考试题及模拟考试
Hong Kong International Jewellery Show and Hong Kong International Diamond, Gem and Pearl Show kick off
Shared memory + inotify mechanism to achieve multi-process low-latency data sharing
[Tool Configuration] Summary of Common Uses of VSCode
protobuf根据有关联的.proto文件进行编译
Flink学习11:flink程序并行度
After working for 3 years, I recalled the comparison between the past and the present when I first started, and joked about my testing career
MySQL:order by排序查询,group by分组查询
How to avoid online memory leaks
Put Cloudflare on the website (take Tencent Cloud as an example)
TCP sticky packet unpacking problem + solution
Freeswitch操作基本配置
技术分析模式(八)双顶和底
Falsely bamboo brother today and found a localization of API to use tools









