当前位置:网站首页>Spark parameter adjustment and tuning
Spark parameter adjustment and tuning
2022-07-25 14:35:00 【Gegwu MMQ!!】
1.1 --num-executors 100
Parameter interpretation : Tasks can be applied for Excutor The largest number , It's not a one-time distribution 100 individual Excutor;Excutor The quantity will be dynamically adjusted during the operation of the task , Yes job be in pending Status then apply Excutor, One Excutor If the idle time is too long, remove it ;Excutor The number of determines the parallelism of tasks ;
apply Excutor: When a task is in pending state ( a backlog ) Over a certain period of time , I think there are insufficient resources , Application required Excutor;
When to apply for : When pending The backlog exceeds spark.dynamicAllocation.schedulerBacklogTimeout(1 second ) On the application
How much to apply for : Number of applications = Running and pending Number of tasks * spark.dynamicAllocation.executorAllocationRatio(1)/ Parallelism
remove Excutor:
spark.dynamicAllocation.enabled(false) Decide whether to use dynamic resource allocation ; External... Must be turned on shuffle;
spark.dynamicAllocation.executorIdleTimeout (60s) Free 60s It will be recycled ( And no cache );
Determine the parallelism of tasks :executor The number of nodes is the number of work nodes , It directly determines the parallelism of tasks ; Exactly by executor*core Decisive ; This is only the maximum degree of parallelism physically provided , The actual parallelism of the task is determined by the parallelism set in the program , That is to say RDD The number of partitions ;
1.2 --executor-memory 5g
Parameter interpretation : Every execu
边栏推荐
- sqli-labs Basic Challenges Less1-10
- 51单片机学习笔记(1)
- 变分(Calculus of variations)的概念及运算规则
- Easy entry natural language processing series 12 hidden Markov models
- ~5 new solution of CCF 2021-12-2 sequence query
- That day, I installed a database for my sister... Just help her sort out another shortcut
- 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
- The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level
- 【MySQL必知必会】触发器 | 权限管理
- D2. picking carrots (hard version) (one question per day)
猜你喜欢

Wechat official account official environment online deployment, third-party public platform access

阿里云安装MYSQL5.7

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

Go language founder leaves Google
![[MySQL must know and know] trigger | permission management](/img/59/cb805d972097a6a8ed7f3ae454a91d.png)
[MySQL must know and know] trigger | permission management

【MySQL系列】-索引知多少

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

Initial flask and simple application

Typora cannot open the prompt to install a new version solution

~4.2 CCF 2021-12-1 sequence query
随机推荐
SSM framework integration, simple case
Is it safe for Guolian securities to buy shares and open an account?
【MySQL必知必会】触发器 | 权限管理
Go language founder leaves Google
[cartographer_ros] VIII: Official demo parameter configuration and effect
~4.2 CCF 2021-12-1 sequence query
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 I)
Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
手把手教你申请SSL证书
Development of uni app offline ID card identification plug-in based on paddleocr
English grammar_ Indefinite pronoun - other / other
Huawei ENSP router static route (the next hop address of the default route)
The main function of component procurement system, digital procurement helps component enterprises develop rapidly
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
[Nuxt 3] (十一) 传送 & 模块
Idea regular expression replacement (idea regular search)
sqli-labs Basic Challenges Less1-10
C language and SQL Server database technology
~5 new solution of CCF 2021-12-2 sequence query
实现一个家庭安防与环境监测系统(一)