Skip to content

Commit ee0fae0

Browse files
committed
update spark.default.parallelism
actually, the value 8 is only valid in mesos fine-grained mode : <code> override def defaultParallelism() = sc.conf.getInt("spark.default.parallelism", 8) </code> while in coarse-grained model including mesos coares-grained, the value of the property depending on core numbers! <code> override def defaultParallelism(): Int = { conf.getInt("spark.default.parallelism", math.max(totalCoreCount.get(), 2)) } </code>
1 parent 44f654e commit ee0fae0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/configuration.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ Apart from these, the following properties are also available, and may be useful
9696
<tr><th>Property Name</th><th>Default</th><th>Meaning</th></tr>
9797
<tr>
9898
<td>spark.default.parallelism</td>
99-
<td>8</td>
99+
<td>
100+
· Mesos fine grained mode: 8<br/>
101+
· Local mode: core number of the local machine<br/>
102+
· Others: total core number of all executor nodes or 2, whichever is larger
103+
</td>
100104
<td>
101105
Default number of tasks to use across the cluster for distributed shuffle operations (<code>groupByKey</code>,
102106
<code>reduceByKey</code>, etc) when not set by user.

0 commit comments

Comments
 (0)