-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-4688] Have a single shared network timeout in Spark #3562
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,8 +52,11 @@ class BlockManagerMasterActor(val isLocal: Boolean, conf: SparkConf, listenerBus | |
|
|
||
| private val akkaTimeout = AkkaUtils.askTimeout(conf) | ||
|
|
||
| val slaveTimeout = conf.getLong("spark.storage.blockManagerSlaveTimeoutMs", | ||
| math.max(conf.getInt("spark.executor.heartbeatInterval", 10000) * 3, 45000)) | ||
| val slaveTimeout = { | ||
| val defaultMs = math.max(conf.getInt("spark.executor.heartbeatInterval", 10000) * 3, 45000) | ||
|
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.
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. also @varunsaxena you should do the proper line wrapping here. right now the line wrap has no semantic meaning at all. you are just wrapping at a random location ....
Contributor
Author
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. @rxin , how about this ?
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. How about ```scala
val slaveTimeout = {
val defaultMs = math.max(conf.getInt("spark.executor.heartbeatInterval", 10000) * 3, 45000)
val networkTimeout = conf.getInt("spark.network.timeout", defaultMs / 1000)
conf.getLong("spark.storage.blockManagerSlaveTimeoutMs", networkTimeout)
}I'm still not sure why we cap it to 45000 by default ... |
||
| val networkTimeout = conf.getInt("spark.network.timeout", defaultMs / 1000) | ||
| conf.getLong("spark.storage.blockManagerSlaveTimeoutMs", networkTimeout * 1000) | ||
| } | ||
|
|
||
| val checkTimeoutInterval = conf.getLong("spark.storage.blockManagerTimeoutIntervalMs", 60000) | ||
|
|
||
|
|
||
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.
Why was default value changed from 60 to 100?
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.
@Lewuathe , that is what I wanted to know. That what should I keep as the default value. Keep a single fixed timeout value for the config spark.network.timeout or change the default based on defaults for earlier configurations which this config intends to replace. As I am pretty new to Spark, I am not aware of what default value will be suitable. Maybe @rxin can confirm.
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.
I think 100 is ok - given the akka timeout was 100.