-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-15352][Doc] follow-up: add configuration docs for topology-aware block replication #17519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
lins05
wants to merge
2
commits into
apache:master
from
lins05:spark-15352-add-docs-for-topology-aware-block-replication
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1004,14 +1004,48 @@ Apart from these, the following properties are also available, and may be useful | |
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>spark.storage.replication.proactive<code></td> | ||
| <td><code>spark.storage.replication.proactive</code></td> | ||
| <td>false</td> | ||
| <td> | ||
| Enables proactive block replication for RDD blocks. Cached RDD block replicas lost due to | ||
| executor failures are replenished if there are any existing available replicas. This tries | ||
| to get the replication level of the block to the initial number. | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>spark.storage.replication.policy</code></td> | ||
| <td> | ||
| org.apache.spark.storage.<br />RandomBlockReplicationPolicy | ||
| </td> | ||
| <td> | ||
| The policy to use for choosing peers when replicating blocks. The default policy would randomly | ||
| choose the peers to replicate to. A more resilient replication policy is provided by | ||
| <code>org.apache.spark.storage.BasicBlockReplicationPolicy</code>, which makes use of the | ||
| topology information of the hosts to choose the peers, much like the HDFS blocks replication | ||
| strategy: it would try to choose the first replica within the same rack, and a third replica on | ||
| a different rack. See <code>spark.storage.replication.topologyMapper</code> below for how to | ||
| provide the topology information for the hosts. | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>spark.storage.replication.topologyMapper</code></td> | ||
| <td> | ||
| org.apache.spark.storage.<br />DefaultTopologyMapper | ||
| </td> | ||
| <td> | ||
| The topology information of a host is determined by a topology mapping service defined by the | ||
| abstract class <code>org.apache.spark.storage.TopologyMapper</code>, which can be configured by | ||
| this property. A default implementation that assumes all hosts are in the same rack is provided | ||
| by <code>org.apache.spark.storage.DefaultTopologyMapper</code>. A file-based implementation is | ||
| provided by <code>org.apache.spark.storage.FileBasedTopologyMapper</code>, which reads the | ||
| topology information from the file <code>org.apache.spark.storage.topologyFile</code>. Each line | ||
| of this file is of the format of <code>host1 = /rack1</code> and provides a mapping from a host | ||
| name to its rack information. <em>Note:</em> This configuration only takes effect when | ||
| <code>spark.storage.replication.policy</code> is set to a a policy that takes the topology | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: |
||
| information into consideration, e.g. | ||
| <code>org.apache.spark.storage.BasicBlockReplicationPolicy</code>. | ||
| </td> | ||
| </tr> | ||
| </table> | ||
|
|
||
| ### Execution Behavior | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we also add an entry for
org.apache.spark.storage.topologyFile?