当前位置:网站首页>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.
边栏推荐
猜你喜欢
不太会讲爱,其实已经偷偷幸福很久啦----我们的故事
2022杭电多校六 1006-Maex (树形DP)
400 times performance improvement 丨 swap valuation optimization case calculation
RNote108---Display the running progress of the R program
(2022杭电多校六)1012-Loop(单调栈+思维)
给网站套上Cloudflare(以腾讯云为例)
【2022 DSCTF决赛wp】
Using printf function in STM32
任务流调度工具AirFlow,,220804,,
typescript65-映射类型(keyof)
随机推荐
在anaconda Promat界面import torch通过,在jupyter notebook中报错的问题(仅提供思路理解!)
Freeswitch操作基本配置
对数据类型而言运算符无效。运算符为 add,类型为 text。
《PyTorch深度学习实践》第十一课(卷积神经网络CNN高级版)
golang-条件语句
数据库多表关联插入数据
MAYA船的建模
DNSlog外带数据注入
Mysql master-slave delay reasons and solutions
MySQL:连接查询 | 内连接,外连接
GAN生成动漫头像Pytorch
Week 8 Document Clustering(文本聚类)
《基于R语言的自动数据收集》--第3章 XML和JSON
binary search tree problem
RK3568 environment installation
typescript62-泛型工具类型(record)
在STM32中使用printf函数
武田公司2022财年第一季度业绩强劲;正稳步实现全年的管理层指引目标
【Go】IM系统Centrifugo
更改小程序原生radio的颜色及大小