-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6955][NETWORK]Do not let Yarn Shuffle Server retry its server port. #5537
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 |
|---|---|---|
|
|
@@ -43,8 +43,12 @@ object SparkTransportConf { | |
| * @param numUsableCores if nonzero, this will restrict the server and client threads to only | ||
| * use the given number of cores, rather than all of the machine's cores. | ||
| * This restriction will only occur if these properties are not already set. | ||
| * @param disablePortRetry if true, server will not retry its port. It's better for the long-run | ||
| * server to disable it since the server and client had the agreement of | ||
| * the specific port. | ||
|
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. if true, the server will not retry to bind to a different port than the one configured.
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. actually, since the only place we ever set this to true is in |
||
| */ | ||
| def fromSparkConf(_conf: SparkConf, numUsableCores: Int = 0): TransportConf = { | ||
| def fromSparkConf(_conf: SparkConf, numUsableCores: Int = 0, | ||
|
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: style here is to indent next line by 2 spaces, or have one parameter per line indented by 4 spaces each.
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, this change broke the MiMA checks. It doesn't feel like these classes should be public (so maybe an exclusion should be fine here), but you can also work around it by declaring an overloaded method instead. @aarondav any comments about whether these classes are really meant to be public?
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. Definitely not meant to be public, could make it |
||
| disablePortRetry: Boolean = false): TransportConf = { | ||
| val conf = _conf.clone | ||
|
|
||
| // Specify thread configuration based on our JVM's allocation of cores (rather than necessarily | ||
|
|
@@ -55,6 +59,10 @@ object SparkTransportConf { | |
| conf.get("spark.shuffle.io.serverThreads", numThreads.toString)) | ||
| conf.set("spark.shuffle.io.clientThreads", | ||
| conf.get("spark.shuffle.io.clientThreads", numThreads.toString)) | ||
|
|
||
| if (disablePortRetry) { | ||
| conf.set("spark.port.maxRetries", "0") | ||
| } | ||
|
|
||
| new TransportConf(new ConfigProvider { | ||
| override def get(name: String): String = conf.get(name) | ||
|
|
||
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.
super nit: alignment is off by 1