当前位置:网站首页>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.
边栏推荐
- 《PyTorch深度学习实践》第十一课(卷积神经网络CNN高级版)
- Shiny04---Application of DT and progress bar in shiny
- 【Dynamic type detection Objective-C】
- JS控制只能输入数字并且最多允许小数点两位
- protobuf is compiled against the associated .proto file
- Nacos cluster construction
- MySQL:连接查询 | 内连接,外连接
- 1、Citrix XenDesktop 2203之AD域系统安装(一)
- 性能提升400倍丨外汇掉期估值计算优化案例
- Libpq 是否支持读写分离配置
猜你喜欢

【网友真实投稿】为女友放弃国企舒适圈,转行软件测试12k*13薪

2022 Fusion Welding and Thermal Cutting Operation Certificate Exam Questions and Mock Exams

re正则表达式

Flink学习11:flink程序并行度

MySQL: JDBC programming

typescript61-泛型工具类型(pick)

游戏思考19:游戏多维计算相关:点乘、叉乘、点线面距离计算

protobuf根据有关联的.proto文件进行编译

Redis

400 times performance improvement 丨 swap valuation optimization case calculation
随机推荐
AH8669-AC380/VAC220V转降5V12V24V500MA内电源芯片IC方案
AI+视频技术助力保障校园安全,校园智能安防平台该如何建设?
【JVM调优】Xms和Xmx为什么要保持一致
typescript60-泛型工具类型(readonly)
Japan Sanitary Equipment Industry Association: Japan's warm water shower toilet seat shipments reached 100 million sets
re正则表达式
1, Citrix XenDesktop 2203 AD domain system installation (1)
Rapid Medical's Ultra-Small and Only Adjustable Thromb Retriever Receives FDA Clearance
概率与期望部分题解
DNSlog外带数据注入
GAN生成动漫头像Pytorch
h5页面回退到微信小程序并携带参数
2022最强版应届生软件测试面试攻略
技术分析模式(八)双顶和底
真实字节跳动测试开发面试题,拿下年薪50万offer。
mysql使用in函数的一个小问题
Nacos cluster construction
Redis
typescript65-映射类型(keyof)
矩阵的构造