当前位置:网站首页>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
边栏推荐
- Apple failed to synchronize on its mobile terminal, so it exited the login. As a result, it could not log in again
- Thymeleaf setting disabled
- Ten common application scenarios of redis
- 51单片机学习笔记(1)
- Mysql表的操作
- Goldfish rhca memoirs: cl210 management storage -- object storage
- 基于redis的keys、scan删除ttl为-1的key
- sudo rosdep init Error ROS安装问题解决方案
- 苹果手机端同步不成功,退出登录,结果再也登录不了
- Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
猜你喜欢

A small part is exposed on one or both sides of the swiper

牛客多校 E G J L

变分(Calculus of variations)的概念及运算规则
Famous handwritten note taking software recruit CTO · coordinate Shenzhen

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

Matplotlib data visualization three minutes entry, half an hour enchanted?

sqli-labs Basic Challenges Less11-22

sqli-labs Basic Challenges Less1-10

From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part 2)

Alibaba cloud installs mysql5.7
随机推荐
物理量与单位符号的书写标准
Maya modeling exercise
Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
Bond0 script
Polymorphism and interface
Flask SSTI injection learning
RuntimeError: CUDA out of memory(已解决)[通俗易懂]
D2. Chopping Carrots (Hard Version) (每日一题)
English grammar_ Indefinite pronoun - other / other
PT100 temperature measurement circuit diagram (AD590 typical temperature measurement circuit)
opencv视频跟踪「建议收藏」
~4.2 CCF 2021-12-1 sequence query
Interpretation of featdepth self-monitoring model for monocular depth estimation (Part 2) -- use of openmmlab framework
安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径
OverTheWire-Natas
Can the variable name be in Chinese? Directly fooled people
Structure size
OverTheWire-Bandit
Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
CTS test introduction (how to introduce interface test in interview)