当前位置:网站首页>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.
边栏推荐
- Mysql master-slave delay reasons and solutions
- typescript63-索引签名类型
- RK3568 environment installation
- 栈与队列的基本介绍和创建、销毁、出入、计算元素数量、查看元素等功能的c语言实现,以及栈的压入、弹出序列判断,栈结构的链式表示与实现
- PCI Pharma Services Announces Multi-Million Dollar Expansion of UK Manufacturing Facility to Meet Growing Demand for Global High Potency Drug Manufacturing Services to Support Oncology Treatment
- (2022杭电多校六)1010-Planar graph(最小生成树)
- 在STM32中使用printf函数
- 【LeetCode】235.二叉搜索树的最近公共祖先
- 技术分析模式(十一)如何交易头肩形态
- Redis进阶
猜你喜欢
随机推荐
PCI Pharma Services Announces Multi-Million Dollar Expansion of UK Manufacturing Facility to Meet Growing Demand for Global High Potency Drug Manufacturing Services to Support Oncology Treatment
C# FileSystemWatcher
typescript61-泛型工具类型(pick)
[instancetype type Objective-C]
2022杭电多校六 1006-Maex (树形DP)
Week 8 Document Clustering
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
数据库多表关联插入数据
【动态类型检测 Objective-C】
原来使Maya Arnold也能渲染出高质量作品!超赞小技巧
腾讯实习总结
MySQL:基础部分
性能提升400倍丨外汇掉期估值计算优化案例
【instancetype类型 Objective-C】
RNote108---显示R程序的运行进度
Week 8 Document Clustering(文本聚类)
技术分析模式(十一)如何交易头肩形态
Technical Analysis Patterns (11) How to Trade Head and Shoulders Patterns
AI + video technology helps to ensure campus security, how to build a campus intelligent security platform?
软件测试必问面试题(附答案和解析)