当前位置:网站首页>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
边栏推荐
- 【口才】谈判说服技巧及策略
- Huawei ENSP router static route (the next hop address of the default route)
- Can the variable name be in Chinese? Directly fooled people
- Melodic + Realsense D435i 配置及错误问题解决
- 国联证券买股票开户安全吗?
- Okaleido ecological core equity Oka, all in fusion mining mode
- Writing standard of physical quantities and unit symbols
- Keys and scan based on redis delete keys with TTL -1
- Realize a family security and environmental monitoring system (II)
- D2. picking carrots (hard version) (one question per day)
猜你喜欢

IDEA设置提交SVN时忽略文件配置

The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path

Vs2017 large factory ERP management system source code factory general ERP source code

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

English grammar_ Indefinite pronoun - other / other

【MySQL必知必会】触发器 | 权限管理

Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO

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

Filters get the data in data; Filters use data in data

基于PaddleOCR开发uni-app离线身份证识别插件
随机推荐
Doris learning notes integration with other systems
Realsense-Ros安装配置介绍与问题解决
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
Doris学习笔记之与其他系统集成
sudo rosdep init Error ROS安装问题解决方案
QObject source code analysis -d pointer and Q pointer
Maya modeling exercise
Runtimeerror: CUDA out of memory (solved) [easy to understand]
Throwing OutOfMemoryError “Could not allocate JNI Env“
Gameframework making games (I)
Mysql表的操作
手把手教你申请SSL证书
Keys and scan based on redis delete keys with TTL -1
The concept and operation rules of calculus of variations
Under the epidemic, the biomedical industry may usher in breakthrough development
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
H5页面input输入框弹起数字键盘,需要支持小数点
D2. Chopping Carrots (Hard Version) (每日一题)
苹果手机端同步不成功,退出登录,结果再也登录不了了
苹果官网产品打折 买iPhone 13 Pro Max 可省600元