当前位置:网站首页>spark参数调整调优
spark参数调整调优
2022-07-25 14:30:00 【格格巫 MMQ!!】
1.1 --num-executors 100
参数解释:任务可以申请的Excutor最大数量,并不是一次性分配100个Excutor;Excutor数量会在任务的运行过程中动态调整,有 job处于pending状态则申请Excutor,一个Excutor空闲时间过长则将其移除;Excutor的数量决定了任务的并行度;
申请Excutor:当有任务处于pending状态(积压)超过一定时间,就认为资源不足,需要申请Excutor;
何时申请:当pending积压的任务超过spark.dynamicAllocation.schedulerBacklogTimeout(1秒)就申请
申请多少:申请数量 = 正在运行和pending的任务数量 * spark.dynamicAllocation.executorAllocationRatio(1)/ 并行度
移除Excutor:
spark.dynamicAllocation.enabled(false)决定是否使用资源动态分配;必须开启外部shuffle;
spark.dynamicAllocation.executorIdleTimeout (60s)空闲60s就会被回收(并且没有缓存);
决定任务的并行度:executor的数量就是工作节点的数量,直接决定了任务的并行度;准确的说是由executor*core决定的;这只是物理上提供的最大并行度,而任务实际的并行度还是由程序中设置的并行度决定,也就是RDD的分区数;
1.2 --executor-memory 5g
参数解释:每个execu
边栏推荐
- H5页面input输入框弹起数字键盘,需要支持小数点
- Quickly set up dobbo demo
- Resource not found: rgbd_launch 解决方案
- Typora cannot open the prompt to install a new version solution
- 51单片机学习笔记(1)
- 牛客多校 E G J L
- QObject source code analysis -d pointer and Q pointer
- 手把手教你申请SSL证书
- Detailed explanation of Telnet remote login AAA mode [Huawei ENSP]
- Nuc980 set up SSH xshell connection
猜你喜欢

51单片机学习笔记(1)

The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level

元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展

Typora无法打开提示安装新版本解决办法

变分(Calculus of variations)的概念及运算规则

Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount

How to design a high concurrency system?

Mongodb source code deployment and configuration

阿里云安装MYSQL5.7

Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
随机推荐
Goldfish rhca memoirs: cl210 management storage -- object storage
Matplotlib data visualization three minutes entry, half an hour enchanted?
Runtimeerror: CUDA out of memory (solved) [easy to understand]
机械制造业数字化新“引擎”供应链协同管理系统助力企业精细化管理迈上新台阶
元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展
IDEA设置提交SVN时忽略文件配置
Basic theory of monocular depth estimation and paper learning summary
Can the variable name be in Chinese? Directly fooled people
苹果手机端同步不成功,退出登录,结果再也登录不了了
Doris学习笔记之与其他系统集成
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
苹果手机端同步不成功,退出登录,结果再也登录不了
快速搭建Dobbo小Demo
Mysql表的操作
Apple failed to synchronize on its mobile terminal, and logged out. As a result, it could not log in again
华为ensp路由器静态路由(默认路由的下一跳地址)
PS making and loading GIF pictures tutorial
Interpretation of featdepth self-monitoring model for monocular depth estimation (Part I) -- paper understanding and core source code analysis
河源市区推出消防安全主题奶茶 助推夏季火灾防控
pt100测温电路图(ad590典型的测温电路)