当前位置:网站首页>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 .
边栏推荐
- 明德扬XILINX-K7-325T/410T核心板数据手册
- Render follows, encapsulating a form and adding data to the table
- 信息学奥赛一本通1194:移动路线
- Unity C basic review 27 - delegation example (p448)
- konva系列教程4:图形属性
- Lumiprobe reactive dye cycloalkyne dye: af488 dbco, 5 isomer
- 如临现场的视觉感染力,NBA决赛直播还能这样看?
- Secondary pointer
- SSL V**技术原理
- pwm转0-5V/0-10V/1-5V线性信号变送器
猜你喜欢

MCS:多元随机变量——多项式分布

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

Take another picture of cloud redis' improvement path

打造一个 API 快速开发平台,牛逼!

SOFARegistry 源码|数据同步模块解析

MCS: discrete random variable - Hyper geometric distribution

又拍云 Redis 的改进之路

微信公众号—菜单

Lumiprobe reactive dye cycloalkyne dye: af488 dbco, 5 isomer

真正的软件测试人员 =“半个产品+半个开发”?
随机推荐
服务器的数据库连不上了【服务已起、防火墙已关、端口已开、netlent 端口不通】
Sofaregistry source code | data synchronization module analysis
Take another picture of cloud redis' improvement path
LeetCode-1188. 设计有限阻塞队列
Lumiprobe reactive dye - amino dye: cyanine 5 amine
Lumiprobe 脱氧核糖核酸丨磷酸盐 CPG 1000 固体载体
在shop工程中,实现一个菜单(增删改查)
Uncover the practice of Baidu intelligent test in the field of automatic test execution
Intelligent diagnosis of Alzheimer's disease
信息学奥赛一本通1003:对齐输出
Is it safe to open a stock account at present? Can I open an account online directly
数据挖掘复习
信息学奥赛一本通1002:输出第二个整数
Leetcode notes: Weekly contest 299
投资reits基金是靠谱吗,reits基金安全吗
Symfony framework security component firewall configuration
Unity C basic review 28 - delegation with return (p449)
雷达相关内容简介
MySQL 数据库命名规范.PDF
.NET程序配置文件操作(ini,cfg,config)