Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12832][MESOS] mesos scheduler respect agent attributes - #10949
[SPARK-12832][MESOS] mesos scheduler respect agent attributes#10949atongen wants to merge 1 commit into
Conversation
dragos
commented
Jan 27, 2016
ok to test |
dragos
commented
Jan 27, 2016
I'll try it out. The code looks good otherwise, thanks for picking up that PR! |
atongen
commented
Jan 29, 2016
Hi @dragos, I'm not sure how to grant access rights to the CI server, but let me know if there's anything I can do to help out here. Thanks. |
dragos
commented
Jan 29, 2016
The failure is spurious, git failed to check out.
|
andrewor14
commented
Feb 1, 2016
retest this please |
There was a problem hiding this comment.
this will fail scalastyle tests; the line needs to be below 100 chars
andrewor14
commented
Feb 1, 2016
Also cc @tnachen who wrote this code originally. From the JIRA:
Is this caused by duplicate code somewhere? Can we resolve that, either in this patch or separately? |
andrewor14
commented
Feb 1, 2016
SparkQA
commented
Feb 1, 2016
Test build #50500 has finished for PR 10949 at commit
|
dragos
commented
Feb 2, 2016
@andrewor14 this is the one that should go forward. The first sentence of this PR says:
Unfortunately I can't close #10768. |
dragos
commented
Feb 2, 2016
Regarding sharing code: The logic to check constraints is already shared. The actual resource processing isn't. Maybe there is room to share more logic. I opened SPARK-10444. |
SparkQA
commented
Feb 11, 2016
Test build #51103 has started for PR 10949 at commit |
atongen
commented
Feb 11, 2016
Pushed changes to address scalastyle test failures. Also, in order to run multiple dispatchers on the same mesos cluster, you should set |
shaneknapp
commented
Feb 11, 2016
jenkins, test this please |
SparkQA
commented
Feb 11, 2016
Test build #51113 has finished for PR 10949 at commit
|
tnachen
commented
Feb 12, 2016
Btw can you add a quick unit test for this? We've added tests before already so should be straightforward to do so. |
dragos
commented
Feb 16, 2016
Good idea about the unit test. I don't think it's too hard to add one along the lines of what's already in |
dragos
commented
Feb 23, 2016
Hey, @atongen will you have time to look into the additional test? |
atongen
commented
Feb 26, 2016
Yes, I'll be able to add tests. Sorry for the delay! |
BrickXu
commented
Mar 8, 2016
any updates here ? |
Astralidea
commented
Mar 11, 2016
@atongen this PR dose not merge into spark 1.6.1, I hope it could merge it to some version like 1.6.2. |
atongen
commented
Mar 16, 2016
@tnachen, @dragos : I reviewed the tests introduced by #5563, and from what I can tell they are mainly testing only MesosSchedulerUtils#matchesAttributeRequirements in regard to attribute constraints; which is the only significant thing introduced by this PR. Without further refactoring, testing at the next level up (MesosClusterScheduler#scheduleTasks) would require a functioning MesosClusterPersistenceEngine (not the black hole), and quite a bit of additional scaffolding. Let me know if this is still a requirement. I would like to confirm before putting in the effort. |
tnachen
commented
Mar 16, 2016
I think we should add tests and I don't think it requires that much refactoring, if you look at MesosClusterSchedulerSuite you can see the test "can handle multiple roles" already tries a submission and verifies it uses the Offer passed in, we can also test by doing a similiar setup where we have a Offer with attributes and without and verify it's performing the correct logic. Tests is very important and we're looking to really increase our coverage as it's getting harder and harder to catch things. |
atongen
commented
Mar 17, 2016
Ok, I'll look into it further, thanks! |
SparkQA
commented
Mar 23, 2016
Test build #53852 has finished for PR 10949 at commit
|
dragos
commented
Mar 30, 2016
@atongen can you please rebase? The tests look good, but I'd like to see the test suite passing. |
dragos
commented
Apr 4, 2016
Hey @atongen, I think this is really close to being merged, can you please rebase? |
dragos
commented
Apr 27, 2016
ping @atongen |
82f71bc to
e6001e9Compareatongen
commented
May 9, 2016
Hello @dragos, again, sorry for all the delays. This branch has been rebased onto master, but I've been having some trouble getting the test suite to run. Please advise. |
SparkQA
commented
May 9, 2016
Test build #58169 has finished for PR 10949 at commit
|
tnachen
commented
Jun 2, 2016
@atongen please rebase and try again. |
* mesos scheduler respect agent constraints * reduce line length for scalastyle test * update test suites
e6001e9 to
ce3047dCompareSparkQA
commented
Jun 13, 2016
Test build #60406 has finished for PR 10949 at commit
|
atongen
commented
Jun 13, 2016
@tnachen Tests updated and rebased. Let me know if there's anything else I can do to help out. |
any update on this ? It is real pain with driver. As i see patch is ready .. question is about when you can merge ? |
AmplabJenkins
commented
Jan 30, 2018
Can one of the admins verify this patch? |
atongen
commented
Mar 6, 2018
I am going to close this PR because there doesn't appear to be any interest in getting it merged. It's unfortunate, because it was a nice feature. |
dragos
commented
Mar 6, 2018
I think both @tnachen and I have moved on to the non-Spark world in the meantime. Anyway, neither of us had commit rights. I agree it's a pity to drop it, perhaps @andrewor14 could help. |
We have a similar need to what is proposed in #10768 by @Astralidea and reviewed by @dragos. This pull request implements the suggestion in the comments of that PR.
It takes logic similar to what is found in #5563 for the executors and applies it to the mesos cluster scheduler.
The scheduler will now only accept offers from agents with attributes matching the constraints from the submission.