当前位置:网站首页>Flink原理流程图简单记录
Flink原理流程图简单记录
2022-08-04 02:00:00 【我爱肉肉】
记录一些图片留给自己将来复习回忆
Yarn-per-job启动流程图

PRC流程图

Akka基于Actor的RPC通信系统,核心概念也是Message,它是基于协程的,性能好:基于scala的偏函数,易用性高,
但是它毕竟只是RPC通信,无法适用大的package/stream的数据传输,所以更多使用场景还是Netty
任务调度
streamGraph:client内根据顺序串联算子,封装流和边。不是对数据做转换的算子变成边,比如keyBy变成hash StreamEdge
JobGraph: 优化多个操作链。多个StreamNode经过优化后可能会chain合并到一个JobVertex。并且多出顶点的中间数据集

ExecutionGraph:执行顶点根据并行度展开,中间结果集变成多个中间结果分区

调度器进行RPC通过网关开启调度真正物理执行


内存管理
内存模型
JVM元空间:默认256mb
JVM执行开销:默认总内存0.1比例
框架内存:TaskManager本身所占用的内存,不计入slot资源中。默认堆内堆外都是128mb
Task内存:堆外内存默认不开启,堆内内存默认none
(由Flink内存扣除其他内存得到,也就是所有多出的内存都是属于Task内存,Flink内存=总内存-JVM元空间和执行开销)
网络内存:网络数据交换的对外内存。默认大小为Flink内存比例0.1/最小64mb/最大1G
管理内存:默认Flink内存比例0.4
内存数据结构-内存段



网络传输的内存管理
传输数据:数据进入本地缓冲池,然后进入网络缓冲池,通过网络缓冲池进行数据的传输
接收数据:流程相反
边栏推荐
- Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
- [store mall project 01] environment preparation and testing
- Use nodejs switch version (no need to uninstall and reinstall)
- Deng Qinglin, Alibaba Cloud Technical Expert: Best Practices for Disaster Recovery across Availability Zones and Multiple Lives in Different Locations on the Cloud
- 数组_滑动窗口 | leecode刷题笔记
- HBuilderX的下载安装和创建/运行项目
- boot issue
- MallBook 助力SKT思珂特教育集团,立足变化,拥抱敏捷交易
- FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
- Web APIs BOM- 操作浏览器:swiper 插件
猜你喜欢

Android interview questions and answer analysis of major factories in the first half of 2022 (continuously updated...)

企业虚拟偶像产生了实质性的价值效益

持续投入商品研发,叮咚买菜赢在了供应链投入上

idea中diagram使用
![Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.](/img/10/87c0bedd49b5dce6fbcd28ac361145.png)
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

Flutter3.0线程——四步教你如何全方位了解(事件队列)
一个项目的整体测试流程有哪几个阶段?测试方法有哪些?

DDTL: Domain Transfer Learning at a Distance

cdh6.x 集成spark-sql

阿里云国际版基于快照与镜像功能迁移云服务器数据
随机推荐
Example: 036 is a prime number
云开发校园微社区微信小程序源码/二手交易/兼职交友微信小程序开源源码
appium软件自动化测试框架
实例041:类的方法与变量
SAP SD module foreground operation
通用的测试用例编写大全(登录测试/web测试等)
DDTL: Domain Transfer Learning at a Distance
this巩固训练,从两道执行题加深理解闭包与箭头函数中的this
实例038:矩阵对角线之和
Promise solves blocking synchronization and turns asynchronous into synchronous
2022年茶艺师(中级)考试试题模拟考试平台操作
web端动效 lottie-web 使用
C# 构造函数业务场景测试项目
持续投入商品研发,叮咚买菜赢在了供应链投入上
持续投入商品研发,叮咚买菜赢在了供应链投入上
C程序编译和预定义详解
Deng Qinglin, Alibaba Cloud Technical Expert: Best Practices for Disaster Recovery across Availability Zones and Multiple Lives in Different Locations on the Cloud
参加Oracle OCP和MySQL OCP考试的学员怎样在VUE预约考试
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
C语言:学生管理系统(链表版)