当前位置:网站首页>Flink SQL task taskmanager memory settings
Flink SQL task taskmanager memory settings
2022-06-29 15:23:00 【Game programming】
Submitting flink When the task , adopt taskmanager.memory.process.size To configure taskmanager Total running memory of , It is sometimes unreasonable to divide the detail memory according to the default proportion . As shown below :

Configured with 10G Of taskmanager Total running memory , By default Managed Memory Allocated 3.5G Of memory , The actual task does not need so much memory to run this part . How to maximize memory management and configuration is very important .
This paper mainly introduces FlinkSQL The task of TaskManager Memory tuning , other flink The task can also be used as a reference .
1、 start-up flink sql client
sql-client.sh embedded shell
You can start with flink The client executes the following commands flinksql Task allocation .
# Set up flink Task itself task name SET pipeline.name = 'flink-sql-test';# Set up flink on yarn Task name for SET yarn.application.name= 'flink-sql-test';# Set up flink checkpoint File storage address SET state.checkpoints.dir = 'hdfs:///flink/checkpoints/flink-sql-test';# Set up taskmanager The total running memory of is 5GSET taskmanager.memory.process.size = '5120m';# Set up flink Frame memory SET taskmanager.memory.framework.heap.size = '128m';# Set user code running memory SET taskmanager.memory.task.heap.size = '4096m';# Set up managed memory Memory SET taskmanager.memory.managed.size = '128m';# Set the off heap memory SET taskmanager.memory.framework.off-heap.size = '128m';# Set up network cache SET taskmanager.memory.network.max = '128m';# Set up JVM Memory SET taskmanager.memory.jvm-metaspace.size = '256m';SET taskmanager.memory.jvm-overhead.max = '256m';# Set up jobmanager Total memory SET jobmanager.memory.process.size= '1024m';# Set up flink on yarn Of yarn queue SET yarn.application.queue= 'other';Submitted after debugging flink taskmanager The runtime memory is as follows :

You can see the original configuration 10G taskmanager Memory , Now it's just a matter of 5G You can run , Memory optimized by half , The cluster resources are effectively utilized .
of flink Memory tuning configuration , Students who need it can also refer to this article for more detailed memory configuration flink Task memory tuning ,TaskManager、JobManager Memory configuration _ Big data fishing blog -CSDN Blog
author : Big data fishing
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- Wechat official account - menu
- Slow bear market, bit Store provides stable stacking products to help you cross the bull and bear
- Intelligent diagnosis of Alzheimer's disease
- 从雷达回波中可获取的信息
- nfs配置两台主机之间的文件映射
- Get the width of text component content
- Construction and application of medical field Atlas of dingxiangyuan
- Bash summary online log
- Unity C# 基础复习26——初识委托(P447)
- I am 35 years old. Can I change my career to be a programmer?
猜你喜欢

Lumiprobe 活性染料丨环炔染料:AF488 DBCO,5 异构体

ROS notes (10) - Launch file startup

Implementing redis distributed locks using custom annotations

MCS: multivariate random variable polynomial distribution

MCS:离散随机变量——Hyper Geometric分布

Lumiprobe reactive dye miscellaneous dye: BDP FL ceramide

CKS CKA ckad change terminal to remote desktop

Solidworks零件图存放位置更改后装配图识别不出来的解决办法

Lumiprobe reactive dye cycloalkyne dye: af488 dbco, 5 isomer

What is the relationship between synchronized and multithreading
随机推荐
近期工作总结
雷达相关内容简介
Is it reliable to invest in REITs funds? Is REITs funds safe
MySQL定时整库备份&滚动删除指定日期前的备份数据
nfs配置两台主机之间的文件映射
Lumiprobe 活性染料丨环炔染料:AF488 DBCO,5 异构体
BFD原理与配置
使用自定义注解实现Redis分布式锁
MySQL开发规范.pdf
Real software testers = "half product + Half development"?
LeetCode-1188. Designing finite blocking queues
如临现场的视觉感染力,NBA决赛直播还能这样看?
真正的软件测试人员 =“半个产品+半个开发”?
Differential equations of satellite motion
konva系列教程4:图形属性
Lumiprobe 脱氧核糖核酸丨炔烃dT亚磷酰胺
JS 会有变量提升和函数提升
Chapter IX app project test (the end of this chapter)
CKS CKA ckad change terminal to remote desktop
Material dynamic self illumination