-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-11714][Mesos] Make Spark on Mesos honor port restrictions #10808
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
Conversation
Conflicts: core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackendSuite.scala merge
b08a20c to
9991c3f
Compare
|
ok to test |
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.
Nit: no need for extra empty lines
|
a couple of style comments, otherwise this LGTM. @tnachen @andrewor14 can you please have a look? |
|
Test build #49685 has finished for PR 10808 at commit
|
|
Test build #49783 has finished for PR 10808 at commit
|
|
Test build #50100 has finished for PR 10808 at commit
|
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.
is this used?
|
@dragos @skonto I haven't gone through the entire patch in great detail yet but I have 3 high level concerns:
I am leaning towards not moving forward with this feature. Even if there is a compelling use case, this feature is slated for removal in a future version anyway so there's not much to gain but a lot to maintain. |
|
I tried to do a quick fix here without touching anything other than mesos fine grained mode, my opinion is that the code here needs refactoring in order to be easily extensible. |
|
Test build #52485 has finished for PR 10808 at commit
|
|
In https://issues.apache.org/jira/browse/SPARK-15992 I tried to cleanup the offer consideration for the coarse executor a little more. The idea being that using the "improved" refactoring in 15992 would make it easier to add port considerations. |
|
@skonto you can close this PR now |
…oarse grain mode - Make mesos coarse grained scheduler accept port offers and pre-assign ports Previous attempt was for fine grained: #10808 Author: Stavros Kontopoulos <stavros.kontopoulos@lightbend.com> Author: Stavros Kontopoulos <stavros.kontopoulos@typesafe.com> Closes #11157 from skonto/honour_ports_coarse.
|
Fixed for coarse grained |
It keeps the convention for random port being the zero port. In such a case, a random port is chosen
from the available ranges (previously accepted from offers).