Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
f0796106
Commit
f0796106
authored
12 years ago
by
Mridul Muralidharan
Browse files
Options
Downloads
Patches
Plain Diff
Add a small note on spark.tasks.schedule.aggression
parent
5d891534
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/spark/scheduler/cluster/ClusterScheduler.scala
+6
-1
6 additions, 1 deletion
...main/scala/spark/scheduler/cluster/ClusterScheduler.scala
with
6 additions
and
1 deletion
core/src/main/scala/spark/scheduler/cluster/ClusterScheduler.scala
+
6
−
1
View file @
f0796106
...
...
@@ -47,6 +47,11 @@ private[spark] class ClusterScheduler(val sc: SparkContext)
- ANY
Note that this property makes more sense when used in conjugation with spark.tasks.revive.interval > 0 : else it is not very effective.
Additional Note: For non trivial clusters, there is a 4x - 5x reduction in running time (in some of our experiments) based on whether
it is left at default HOST_LOCAL, RACK_LOCAL (if cluster is configured to be rack aware) or ANY.
If cluster is rack aware, then setting it to RACK_LOCAL gives best tradeoff and a 3x - 4x performance improvement while minimizing IO impact.
Also, it brings down the variance in running time drastically.
*/
val
TASK_SCHEDULING_AGGRESSION
=
TaskLocality
.
parse
(
System
.
getProperty
(
"spark.tasks.schedule.aggression"
,
"HOST_LOCAL"
))
...
...
@@ -68,7 +73,7 @@ private[spark] class ClusterScheduler(val sc: SparkContext)
val
activeExecutorIds
=
new
HashSet
[
String
]
// TODO: We might want to remove this and merge it with execId datastructures - but later.
// Which hosts in the cluster are alive (contains hostPort's)
// Which hosts in the cluster are alive (contains hostPort's)
- used for hyper local and local task locality.
private
val
hostPortsAlive
=
new
HashSet
[
String
]
private
val
hostToAliveHostPorts
=
new
HashMap
[
String
,
HashSet
[
String
]]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment